PHP 클래스 Zend\Expressive\Container\WhoopsFactory
Register this factory as the service
Zend\Expressive\Whoops in the
container of your choice. This service depends on two others:
- 'config' (which should return an array or array-like object with a "whoops"
key, containing the configuration for whoops).
- 'Zend\Expressive\WhoopsPageHandler', which should return a
Whoops\Handler\PrettyPageHandler instance to register on the whoops
instance.
The whoops configuration can contain:
'whoops' => [
'json_exceptions' => [
'display' => true,
'show_trace' => true,
'ajax_only' => true,
]
]
All values are booleans; omission of any implies boolean false.
파일 보기
프로젝트 열기: zendframework/zend-expressive
공개 메소드들
메소드 |
설명 |
|
__invoke ( Interop\Container\ContainerInterface $container ) : Whoops\Run |
Create and return an instance of the Whoops runner. |
|
비공개 메소드들
메소드 상세
Create and return an instance of the Whoops runner.
public __invoke ( Interop\Container\ContainerInterface $container ) : Whoops\Run |
$container |
Interop\Container\ContainerInterface |
|
리턴 |
Whoops\Run |
|