메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
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 |
리턴 |
protected createNotFoundException ( string $message = 'Not Found' ) : Exception | ||
$message | string | |
리턴 | Exception |
public generateUrl ( $name, array $parameters = [], $reference = UrlGeneratorInterface::ABSOLUTE_PATH ) | ||
$parameters | array |