PHP Class Zend\Expressive\Container\WhoopsPageHandlerFactory

Register this factory as the service Zend\Expressive\WhoopsPageHandler in the container of your choice. This service has an optional dependency on the "config" service, which should return an array or ArrayAccess instance. If found, it looks for the following structure: 'whoops' => [ 'editor' => 'editor name, editor service name, or callable', ] If an editor is provided, it checks to see if it maps to a known service in the container, and will use that; otherwise, it uses the value verbatim.
Afficher le fichier Open project: zendframework/zend-expressive

Méthodes publiques

Méthode Description
__invoke ( Interop\Container\ContainerInterface $container )

Private Methods

Méthode Description
injectEditor ( PrettyPageHandler $handler, array | ArrayAccess $config, Interop\Container\ContainerInterface $container ) Inject an editor into the whoops configuration.

Method Details

__invoke() public méthode

public __invoke ( Interop\Container\ContainerInterface $container )
$container Interop\Container\ContainerInterface