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

Autowiring definitions #1

Closed
mnapoli opened this issue Jan 29, 2017 · 3 comments
Closed

Autowiring definitions #1

mnapoli opened this issue Jan 29, 2017 · 3 comments

Comments

@mnapoli
Copy link
Owner

mnapoli commented Jan 29, 2017

Add a new autowire() helper:

return [
    'mailer' => autowire(Mailer::class),
];
@rejinka
Copy link
Contributor

rejinka commented Feb 2, 2017

The result should then be like the following?

# app/config/services.yml
services:
    mailer:
        class: Mailer
        autowire: true

If yes, I'd like to make a PR.

@mnapoli
Copy link
Owner Author

mnapoli commented Feb 2, 2017

Yes that's exactly that! The PR would be very welcome!

@mnapoli
Copy link
Owner Author

mnapoli commented Feb 4, 2017

Implemented by @rejinka in #4 \o/

@mnapoli mnapoli closed this as completed Feb 4, 2017
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

2 participants