Controller\PreviewErrorController (Bundle\TwigBundle)

Symfony\Bundle\TwigBundle\Controller\PreviewErrorController

class PreviewErrorController

PreviewErrorController can be used to test error pages.

It will create a test exception and forward it to another controller.

Methods

__construct(HttpKernelInterface $kernel, $controller)
previewErrorPageAction(Request $request, $code)

Details

public __construct(HttpKernelInterface $kernel, $controller)

Parameters

HttpKernelInterface $kernel
$controller

public previewErrorPageAction(Request $request, $code)

Parameters

Request $request
$code

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Bundle/TwigBundle/Controller/PreviewErrorController.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部