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

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Show file Open project: symfony/symfony Class Usage Examples

Public Methods

Method 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 method

public addFlash ( $type, $message )

createAccessDeniedException() public method

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

createForm() public method

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

createFormBuilder() public method

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

createNotFoundException() public method

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

denyAccessUnlessGranted() public method

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

file() public method

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

forward() public method

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

generateUrl() public method

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

getDoctrine() public method

public getDoctrine ( )

getUser() public method

public getUser ( )

isCsrfTokenValid() public method

public isCsrfTokenValid ( $id, $token )

isGranted() public method

public isGranted ( $attributes, $object = null )

json() public method

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

redirect() public method

public redirect ( $url, $status = 302 )

redirectToRoute() public method

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

render() public method

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

renderView() public method

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

stream() public method

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