ymcatwincities / ymca_sync

Syncer for Open Y and not only
0 stars 4 forks source link

Resolve non-existent service ymca_sync.sync_repository error. #5

Closed Sardis93 closed 10 months ago

Sardis93 commented 10 months ago

After update to Drupal 10, the following command

drush yn-sync my_data.syncer

produces the error:

In Container.php line 157:
  You have requested a non-existent service "ymca_sync.sync_repository".

The error happens because the services in Symfony 5 and above are now created private by default. Drupal expects services to be explicitly set to public. More info found here: https://www.drupal.org/node/3194517

atiupa commented 10 months ago

@danylevskyi please review, this one is critical for all D10 websites where we use ymca_sync