environment variables - Symfony 2 - getEnvorinment() in Prod -


i trying test code below dump in various environments (local, dev, qa, int). adding /app_dev.php/ , /app_qa.php/ after domain, able determine symfony outputs 'dev' , 'qa' respectably. when try /app_prod.php/ simulate int environment, server error message.

i want confirm using code below on prod environment dump 'prod'.

var_dump( $this->container->get('kernel')->getenvironment() ); 

$this->container->get('kernel')->getenvironment() return value of first argument of appkernel when framework loaded.

$kernel = new appkernel('prod', false); 

getenvironment() returns prod

$kernel = new appkernel('qa', false); 

getenvironment() returns qa


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -