How do I read configuration settings from Symfony2 config.yml?
I have added a setting to my config.yml file as such: app.config: contact_email: [email protected] … For the life of me, I can’t figure out how to read it into a variable. I tried something like this in one of my controllers: $recipient = $this->container->getParameter(‘contact_email’); But I get an error saying: The parameter “contact_email” must be … Read more