Leonard Austin
Posts
Projects
About
menu
Posts
Projects
About
theme
How to get environment in Symfony2
09 March 2012
php
web dev
In the controller use:
$this
->
get
(
'kernel'
)
->
getEnvironment
()