Method | Description | |
---|---|---|
abort ( $statusCode, $message = '', array $headers = [] ) | ||
createForm ( string | FormTypeInterface $type, mixed $data = null, array $options = [] ) : |
Creates and returns a Form instance from the type of the form. | |
createFormBuilder ( mixed $data = null, array $options = [] ) : |
Creates and returns a form builder instance | |
generateUrl ( $name, array $parameters = [], $reference = UrlGeneratorInterface::ABSOLUTE_PATH ) | ||
get ( string $id ) : mixed | ||
getUser ( ) : mixed | Get a user from the Security Context | |
has ( string $id ) : boolean | ||
redirect ( $url, $statusCode = 302 ) | ||
render ( $name, array $context = [] ) | ||
text ( string $text, integer $statusCode = 200, array $headers = [] ) : |
Creates a normal response with the given text and statusCode |
Method | Description | |
---|---|---|
createNotFoundException ( string $message = 'Not Found' ) : Exception | This will result in a 404 response code. | |
getRequest ( ) : |
public createFormBuilder ( mixed $data = null, array $options = [] ) : |
||
$data | mixed | The initial data for the form |
$options | array | Options for the form |
return |
protected createNotFoundException ( string $message = 'Not Found' ) : Exception | ||
$message | string | |
return | Exception |
public generateUrl ( $name, array $parameters = [], $reference = UrlGeneratorInterface::ABSOLUTE_PATH ) | ||
$parameters | array |
protected getRequest ( ) : |
||
return |