fixed previous commit

This commit is contained in:
Fabien Potencier 2011-02-19 13:02:23 +01:00
parent f1dd3f22e3
commit 946d3d9302

View File

@ -28,7 +28,7 @@ class GlobalVariables
}
/**
* Returns security context service
* Returns the security context service.
*
* @return Symfony\Component\Security\Core\SecurityContext|void The security context
*/
@ -40,9 +40,10 @@ class GlobalVariables
}
/**
* Returns current user
* Returns the current user.
*
* @return mixed|void
*
* @see Symfony\Component\Security\Core\Authentication\Token\TokenInterface::getUser()
*/
public function getUser()
@ -64,7 +65,7 @@ class GlobalVariables
}
/**
* Returns security context service
* Returns the security context service.
*
* @return Symfony\Component\HttpFoundation\Request|void The http request object
*/
@ -76,7 +77,7 @@ class GlobalVariables
}
/**
* Returns security context service
* Returns the security context service.
*
* @return Symfony\Component\HttpFoundation\Session|void The session
*/
@ -88,26 +89,22 @@ class GlobalVariables
}
/**
* Returns current app environment
* Returns the current app environment.
*
* @return string|void The current environment string (e.g 'dev')
* @return string The current environment string (e.g 'dev')
*/
public function getEnvironment()
{
if ($this->container->hasParameter('kernel.environment')) {
return $this->container->getParameter('kernel.environment');
}
}
/**
* Returns current app debug mode
* Returns the current app debug mode.
*
* @return boolean|void The current debug mode
* @return Boolean The current debug mode
*/
public function getDebug()
{
if ($this->container->hasParameter('kernel.debug')) {
return (bool) $this->container->getParameter('kernel.debug');
}
}
}