PHP 클래스 Symfony\Bundle\FrameworkBundle\Tests\Controller\TestController

상속: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
파일 보기 프로젝트 열기: symfony/symfony 1 사용 예제들

공개 메소드들

메소드 설명
addFlash ( $type, $message )
createAccessDeniedException ( $message = 'Access Denied.', Exception $previous = null )
createForm ( $type, $data = null, array $options = [] )
createFormBuilder ( $data = null, array $options = [] )
createNotFoundException ( $message = 'Not Found', Exception $previous = null )
denyAccessUnlessGranted ( $attributes, $object = null, $message = 'Access Denied.' )
file ( $file, $fileName = null, $disposition = ResponseHeaderBag::DISPOSITION_ATTACHMENT )
forward ( $controller, array $path = [], array $query = [] )
generateUrl ( $route, $parameters = [], $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH )
getDoctrine ( )
getUser ( )
isCsrfTokenValid ( $id, $token )
isGranted ( $attributes, $object = null )
json ( $data, $status = 200, $headers = [], $context = [] )
redirect ( $url, $status = 302 )
redirectToRoute ( $route, array $parameters = [], $status = 302 )
render ( $view, array $parameters = [], Response $response = null )
renderView ( $view, array $parameters = [] )
stream ( $view, array $parameters = [], Symfony\Component\HttpFoundation\StreamedResponse $response = null )

메소드 상세

addFlash() 공개 메소드

public addFlash ( $type, $message )

createAccessDeniedException() 공개 메소드

public createAccessDeniedException ( $message = 'Access Denied.', Exception $previous = null )
$previous Exception

createForm() 공개 메소드

public createForm ( $type, $data = null, array $options = [] )
$options array

createFormBuilder() 공개 메소드

public createFormBuilder ( $data = null, array $options = [] )
$options array

createNotFoundException() 공개 메소드

public createNotFoundException ( $message = 'Not Found', Exception $previous = null )
$previous Exception

denyAccessUnlessGranted() 공개 메소드

public denyAccessUnlessGranted ( $attributes, $object = null, $message = 'Access Denied.' )

file() 공개 메소드

public file ( $file, $fileName = null, $disposition = ResponseHeaderBag::DISPOSITION_ATTACHMENT )

forward() 공개 메소드

public forward ( $controller, array $path = [], array $query = [] )
$path array
$query array

generateUrl() 공개 메소드

public generateUrl ( $route, $parameters = [], $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH )

getDoctrine() 공개 메소드

public getDoctrine ( )

getUser() 공개 메소드

public getUser ( )

isCsrfTokenValid() 공개 메소드

public isCsrfTokenValid ( $id, $token )

isGranted() 공개 메소드

public isGranted ( $attributes, $object = null )

json() 공개 메소드

public json ( $data, $status = 200, $headers = [], $context = [] )

redirect() 공개 메소드

public redirect ( $url, $status = 302 )

redirectToRoute() 공개 메소드

public redirectToRoute ( $route, array $parameters = [], $status = 302 )
$parameters array

render() 공개 메소드

public render ( $view, array $parameters = [], Response $response = null )
$parameters array
$response Symfony\Component\HttpFoundation\Response

renderView() 공개 메소드

public renderView ( $view, array $parameters = [] )
$parameters array

stream() 공개 메소드

public stream ( $view, array $parameters = [], Symfony\Component\HttpFoundation\StreamedResponse $response = null )
$parameters array
$response Symfony\Component\HttpFoundation\StreamedResponse