ArgumentMetadata

class ArgumentMetadata Responsible for storing metadata of an argument. Methods __construct(string $name, string $type, bool $isVariadic, bool $hasDefaultValue, mixed $defaultValue, bool $isNullable = false) string getName() Returns the name as given in PHP, $foo would yield "foo". string getType() Returns the type of the argument. bool isVariadic() Returns whether the argument is defined as ". bool hasDefaultValue() Returns whether the argument has a default value.

AppVariable::setRequestStack()

setRequestStack(RequestStack $requestStack) Parameters RequestStack $requestStack

ArgumentMetadata::getDefaultValue()

mixed getDefaultValue() Returns the default value of the argument. Return Value mixed Exceptions LogicException if no default value is present; {see self::hasDefaultValue()}

AppVariable::getDebug()

bool getDebug() Returns the current app debug mode. Return Value bool The current debug mode

AppVariable::setDebug()

setDebug($debug) Parameters $debug

AppVariable::getUser()

mixed getUser() Returns the current user. Return Value mixed See also TokenInterface::getUser()

AppVariable::getRequest()

Request|null getRequest() Returns the current request. Return Value Request|null The HTTP request object

AppVariable::setEnvironment()

setEnvironment($environment) Parameters $environment

AppVariable::getEnvironment()

string getEnvironment() Returns the current app environment. Return Value string The current environment string (e.g 'dev')

AppVariable::getSession()

Session|null getSession() Returns the current session. Return Value Session|null The session