ElnurAbstractControllerBundle icon indicating copy to clipboard operation
ElnurAbstractControllerBundle copied to clipboard

Passing parameters from parameters.yml to abstract controller

Open samlevin opened this issue 10 years ago • 1 comments

Hi Elnur,

I wish to create an instance of swift mailer, using parameters from parameters.yml, and add this to a class which inherets from your base class. How can I take these parameters?

Thanks man

samlevin avatar Jul 24 '14 07:07 samlevin

Sorry it took me so long to answer.

Why don't you just inject the Swiftmailer instance that Symfony SE creates for you?

elnur avatar Aug 08 '14 02:08 elnur