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

Decorator inner services are not found #510

Closed
jaytaph opened this issue May 26, 2015 · 2 comments
Closed

Decorator inner services are not found #510

jaytaph opened this issue May 26, 2015 · 2 comments
Labels

Comments

@jaytaph
Copy link

jaytaph commented May 26, 2015

When creating a decorated service through the decorator keyword in the DIC, it will automatically create a service called service.inner (controllable through the decoration_inner_name service). These inner services are not known to the plugin and will be highlighted as "missing services".

@Haehnchen
Copy link
Owner

related #449 and #391

@Haehnchen
Copy link
Owner

Also annoyed me last days ;)

http://symfony.com/doc/current/components/dependency_injection/advanced.html#decorating-services

yaml

bar:
  class: stdClass
  public: false
  decorates: foo
  decoration_inner_name: bar.wooz
  arguments: ["@bar.wooz"]

xml

<service id="bar" class="stdClass" decorates="foo" decoration-inner-name="bar.wooz" public="false">
    <argument type="service" id="bar.wooz" />
</service>

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

No branches or pull requests

2 participants