10000 Add "when" argument to #[AsAlias] · Issue #60118 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Add "when" argument to #[AsAlias] #60118

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
nicolas-grekas opened this issue Apr 2, 2025 · 2 comments · Fixed by #60186
Closed

Add "when" argument to #[AsAlias] #60118

nicolas-grekas opened this issue Apr 2, 2025 · 2 comments · Fixed by #60186

Comments

@nicolas-grekas
Copy link
Member

Description

Proposal made during the workshop at SymfonyLive Berlin:

#[AsAlias(SomeInterface::class, when: 'prod')

Example

No response

@GromNaN
Copy link
Member
GromNaN commented Apr 7, 2025

What use case did you find it useful for?

@nicolas-grekas
Copy link
Member Author

When in dev, autowire this implem, in prod that one and in test, this other :)

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

Successfully merging a pull request may close this issue.

3 participants
0