Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DependencyInjection] Allow dumping inline services in YAML #8381

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

Closed
javiereguiluz opened this issue Sep 10, 2017 · 1 comment
Closed

[DependencyInjection] Allow dumping inline services in YAML #8381

javiereguiluz opened this issue Sep 10, 2017 · 1 comment

Comments

@javiereguiluz
Copy link
Member

See symfony/symfony#23855 and the example in the fixtures:

services:
    service_container:
        class: Symfony\Component\DependencyInjection\ContainerInterface
        synthetic: true
    foo:
        class: Class1
        arguments: [!service { class: Class2, arguments: [!service { class: Class2 }] }]
    Psr\Container\ContainerInterface:
        alias: service_container
        public: false
    Symfony\Component\DependencyInjection\ContainerInterface:
        alias: service_container
        public: false
@javiereguiluz
Copy link
Member Author

Closing as "won't fix" because this feature is only about dumping service config instead of loading it. In addition, this behavior is automatic and cannot be controlled with any option, so there's no need to document it.

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

No branches or pull requests

1 participant