-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Add documentation for anonymous services #5854
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
Comments
I am not sure if we should really document this. Imho it's only useful for the dumpers to be able to dump the optimised container. But as the end user you don't really need this feature as making services private leads to the same anyway when the container is compiled. |
And by the way, the Yaml format does not support anonymous services and won't get this feature in the future (see symfony/symfony#16328). |
@xabbuh So may be this one should get closed. |
@xabbuh You're right, but this is maybe the only "syntactic sugar" for XML to compensate for its insane verbosity... It just seems sad to not document this |
When "anonymous service" is undocumented, it should not be mentioned in the doc in http://symfony.com/doc/current/service_container/service_locators.html#defining-a-service-locator |
now it should be documented; also mentioned in #7694, see also symfony/symfony#21970 |
Reopening until all versions and formats are properly documented. |
…aan) This PR was merged into the 3.4 branch. Discussion ---------- Add section about anonymous services in YAML Fixes #7694. This is a continuation of #9909 which added some information about anonymous services in XML to the docs, next will be a commit that describes configuring anonymous services in PHP for the `master` branch. For further information about the issue, see #5854. Commits ------- 8a83664 Add section about anonymous services in YAML
Do we have any documentation for "anonymous services"? i googled some terms about this feature but not getting results on the official page. Some improvements would be nice here. :)
related: Haehnchen/idea-php-symfony2-plugin#595
The text was updated successfully, but these errors were encountered: