Method |
Description |
|
addDanger ( $message, $namespace = 'front' ) |
|
|
addError ( $message, $namespace = 'front' ) |
|
|
addInfo ( $message, $namespace = 'front' ) |
|
|
addRequestError ( $message, $namespace = 'front' ) |
|
|
addSuccess ( $message, $namespace = 'front' ) |
Application Shortcut Methods |
|
addWarning ( $message, $namespace = 'front' ) |
|
|
clearMessage ( ) |
|
|
deleteMessage ( ) |
|
|
encodePassword ( Symfony\Component\Security\Core\User\UserInterface $user, string $password ) : string |
Encodes the raw password. |
|
form ( mixed $data = null, array $options = [] ) : FormBuilder |
Creates and returns a form builder instance |
|
isAdminRequest ( ) |
|
|
isFrontRequest ( ) |
|
|
isGranted ( mixed $attributes, mixed $object = null ) : boolean |
Checks if the attributes are granted against the current authentication token and optionally supplied object. |
|
log ( string $message, array $context = [], integer $level = Logger::INFO ) : boolean |
Adds a log record. |
|
mail ( Swift_Message $message, array &$failedRecipients = null ) : integer |
Sends an email. |
|
path ( string $route, mixed $parameters = [] ) : string |
Generates a path from the given parameters. |
|
render ( string $view, array $parameters = [], Response $response = null ) : Response |
Renders a view and returns a Response. |
|
renderView ( string $view, array $parameters = [] ) : string |
Renders a view. |
|
setLoginTargetPath ( $targetPath, $namespace = null ) |
|
|
trans ( string $id, array $parameters = [], string $domain = 'messages', string $locale = null ) : string |
Translates the given message. |
|
transChoice ( string $id, integer $number, array $parameters = [], string $domain = 'messages', string $locale = null ) : string |
Translates the given choice message by choosing a translation according to a number. |
|
url ( string $route, mixed $parameters = [] ) : string |
Generates an absolute URL from the given parameters. |
|
user ( ) : mixed |
Gets a user from the Security context. |
|