project-satisfy / satisfy

Satis composer repository manager with a Web UI
http://ludofleury.github.io/satisfy/
MIT License
514 stars 109 forks source link

'Service "Playbloom\Satisfy\Service\LockProcessor" not found' error when trying to upload composer.lock file #152

Closed dshiryaev-plesk closed 2 years ago

dshiryaev-plesk commented 3 years ago

STR

  1. Open /admin page
  2. Press 'Add all repositories from a composer.lock' button
  3. Upload a composer.lock file

Actual result

The page shows the following error:

Service "Playbloom\Satisfy\Service\LockProcessor" not found: even though it exists in the app's container, the container inside "Playbloom\Satisfy\Controller\RepositoryController" is a smaller service locator that only knows about the "Playbloom\Satisfy\Service\Manager", "Playbloom\Satisfy\Validator\EnvValidator", "form.factory", "http_kernel", "parameter_bag", "request_stack", "router", "security.authorization_checker", "security.csrf.token_manager", "security.token_storage", "serializer", "session", "templating" and "twig" services. Try using dependency injection instead.

Expected result

Satisfy adds all composer repositories from uploaded composer.lock file then shows them at /admin page

Checked Satisfy versions that has this issue

ramunasd commented 2 years ago

fixed