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.
Показать файл
Открыть проект
Открытые методы
Метод |
Описание |
|
__invoke ( Interop\Container\ContainerInterface $container ) : Whoops\Run |
Create and return an instance of the Whoops runner. |
|
Приватные методы
Описание методов
__invoke()
публичный Метод
Create and return an instance of the Whoops runner.
public __invoke ( Interop\Container\ContainerInterface $container ) : Whoops\Run |
$container |
Interop\Container\ContainerInterface |
|
Результат |
Whoops\Run |
|