Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot inject service parameters #5586

Closed
Chi-teck opened this issue May 23, 2023 · 2 comments
Closed

Cannot inject service parameters #5586

Chi-teck opened this issue May 23, 2023 · 2 comments
Assignees

Comments

@Chi-teck
Copy link
Collaborator

Describe the bug

I have a Symfony console command registered in Drush as follows.

services:
  my_module.example
    class: Drupal\my_module\Command\ExampleCommand
    arguments: ['%app.root%', '@entity_type.manager']
    tags:
      - { name: console.command }

By some reason the %app.root% parameter is no longer resolved in the command.

System Configuration

Q A
Drush version? 12.0-RC1
Drupal version? 10.x
PHP version 8.x
OS? Linux

Additional information
That works well in Drush 12.0-beta1 and below.

@greg-1-anderson
Copy link
Member

We're removed the Symfony DI container service provider, and are instead emulating it. Service parameters are not implemented. That should be rectified.

@greg-1-anderson
Copy link
Member

Fixed 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants