PHP 클래스 Flint\Controller\Controller

상속: extends Flint\PimpleAware
파일 보기 프로젝트 열기: flint/flint 1 사용 예제들

공개 메소드들

메소드 설명
abort ( $statusCode, $message = '', array $headers = [] )
createForm ( string | FormTypeInterface $type, mixed $data = null, array $options = [] ) : Form Creates and returns a Form instance from the type of the form.
createFormBuilder ( mixed $data = null, array $options = [] ) : FormBuilder 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 = [] ) : Response 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 ( ) : Request

메소드 상세

abort() 공개 메소드

또한 보기: Silex\Application::abort()
public abort ( $statusCode, $message = '', array $headers = [] )
$headers array

createForm() 공개 메소드

Creates and returns a Form instance from the type of the form.
public createForm ( string | FormTypeInterface $type, mixed $data = null, array $options = [] ) : Form
$type string | FormTypeInterface The built type of the form
$data mixed The initial data for the form
$options array Options for the form
리턴 Symfony\Component\Form\Form

createFormBuilder() 공개 메소드

Creates and returns a form builder instance
public createFormBuilder ( mixed $data = null, array $options = [] ) : FormBuilder
$data mixed The initial data for the form
$options array Options for the form
리턴 Symfony\Component\Form\FormBuilder

createNotFoundException() 보호된 메소드

This will result in a 404 response code.
protected createNotFoundException ( string $message = 'Not Found' ) : Exception
$message string
리턴 Exception

generateUrl() 공개 메소드

또한 보기: Symfony\Component\Routing\RouterInterface::generate()
public generateUrl ( $name, array $parameters = [], $reference = UrlGeneratorInterface::ABSOLUTE_PATH )
$parameters array

get() 공개 메소드

public get ( string $id ) : mixed
$id string
리턴 mixed

getRequest() 보호된 메소드

protected getRequest ( ) : Request
리턴 Symfony\Component\HttpFoundation\Request

getUser() 공개 메소드

Get a user from the Security Context
public getUser ( ) : mixed
리턴 mixed

has() 공개 메소드

public has ( string $id ) : boolean
$id string
리턴 boolean

redirect() 공개 메소드

또한 보기: Silex\Application::redirect()
public redirect ( $url, $statusCode = 302 )

render() 공개 메소드

public render ( $name, array $context = [] )
$context array

text() 공개 메소드

Creates a normal response with the given text and statusCode
public text ( string $text, integer $statusCode = 200, array $headers = [] ) : Response
$text string
$statusCode integer
$headers array
리턴 Symfony\Component\HttpFoundation\Response