PHP Class Symfony\Bundle\FrameworkBundle\Tests\Controller\TestController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Afficher le fichier Open project: symfony/symfony Class Usage Examples

Méthodes publiques

Méthode Description
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 )

Method Details

addFlash() public méthode

public addFlash ( $type, $message )

createAccessDeniedException() public méthode

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

createForm() public méthode

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

createFormBuilder() public méthode

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

createNotFoundException() public méthode

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

denyAccessUnlessGranted() public méthode

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

file() public méthode

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

forward() public méthode

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

generateUrl() public méthode

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

getDoctrine() public méthode

public getDoctrine ( )

getUser() public méthode

public getUser ( )

isCsrfTokenValid() public méthode

public isCsrfTokenValid ( $id, $token )

isGranted() public méthode

public isGranted ( $attributes, $object = null )

json() public méthode

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

redirect() public méthode

public redirect ( $url, $status = 302 )

redirectToRoute() public méthode

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

render() public méthode

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

renderView() public méthode

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

stream() public méthode

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