Application
class Application extends ApplicationTrait
Methods
Creates and returns a form builder instance
Adds a log record.
Encodes the raw password.
Sends an email.
Translates the given message.
Translates the given choice message by choosing a translation according to a number.
Renders a view and returns a Response.
Renders a view.
Generates a path from the given parameters.
Generates an absolute URL from the given parameters.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Application Shortcut Methods
No description
No description
No description
No description
No description
Details
in ApplicationTrait at line 36
FormBuilder
form(mixed $data = null, array $options = array())
Creates and returns a form builder instance
in ApplicationTrait at line 51
bool
log(string $message, array $context = array(), int $level = Logger::INFO)
Adds a log record.
in ApplicationTrait at line 64
mixed
user()
Gets a user from the Security Context.
in ApplicationTrait at line 87
string
encodePassword(UserInterface $user, string $password)
Encodes the raw password.
in ApplicationTrait at line 101
int
mail(Swift_Message $message, array $failedRecipients = null)
Sends an email.
in ApplicationTrait at line 117
string
trans(string $id, array $parameters = array(), string $domain = 'messages', string $locale = null)
Translates the given message.
in ApplicationTrait at line 133
string
transChoice(string $id, int $number, array $parameters = array(), string $domain = 'messages', string $locale = null)
Translates the given choice message by choosing a translation according to a number.
in ApplicationTrait at line 150
Response
render(string $view, array $parameters = array(), Response $response = null)
Renders a view and returns a Response.
To stream a view, pass an instance of StreamedResponse as a third argument.
in ApplicationTrait at line 176
Response
renderView(string $view, array $parameters = array())
Renders a view.
in ApplicationTrait at line 190
string
path(string $route, mixed $parameters = array())
Generates a path from the given parameters.
in ApplicationTrait at line 203
string
url(string $route, mixed $parameters = array())
Generates an absolute URL from the given parameters.
at line 39
__construct(array $values = array())
at line 50
initialize()
at line 107
initializePlugin()
at line 116
initConfig()
at line 194
initLogger()
at line 221
initSession()
at line 237
initLocale()
at line 265
initRendering()
at line 347
initMailer()
at line 364
initDoctrine()
at line 413
initPluginEventDispatcher()
at line 451
loadPlugin()
at line 527
initSecurity()
at line 603
addSuccess($message, $namespace = 'front')
Application Shortcut Methods