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

[Symfony 6.3] Consider adding nested autowire attribute #642

Open
TomasVotruba opened this issue Jul 5, 2024 · 0 comments
Open

[Symfony 6.3] Consider adding nested autowire attribute #642

TomasVotruba opened this issue Jul 5, 2024 · 0 comments

Comments

@TomasVotruba
Copy link
Member

See https://symfony.com/blog/new-in-symfony-6-3-dependency-injection-improvements#nesting-related-attributes-in-autowire

class AutowireNestedAttributes implements AsDecoratorInterface
{
    public function __construct(
        #[Autowire([
            'decorated' => new MapDecorated(),
            'iterator' => new TaggedIterator('foo'),
            'locator' => new TaggedLocator('foo'),
            'service' => new Autowire(service: 'bar')
        ])] array $options)
    {
    }
}
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

1 participant