mirror of
https://github.com/filp/whoops.git
synced 2026-09-04 22:48:11 +00:00
Zend Provider | Set editor via the module config
This commit is contained in:
@@ -34,6 +34,13 @@ class Module
|
||||
{
|
||||
$prettyPageHandler = new PrettyPageHandler();
|
||||
|
||||
// Set editor
|
||||
$config = $event->getApplication()->getServiceManager()->get('Config');
|
||||
if (isset($config['view_manager']['editor'])) {
|
||||
$prettyPageHandler->setEditor($config['view_manager']['editor']);
|
||||
}
|
||||
|
||||
|
||||
$this->run = new Run();
|
||||
$this->run->register();
|
||||
$this->run->pushHandler($prettyPageHandler);
|
||||
|
||||
@@ -2,12 +2,13 @@
|
||||
/**
|
||||
* ZF2 Integration for Whoops
|
||||
* @author Balázs Németh <zsilbi@zsilbi.hu>
|
||||
*
|
||||
*
|
||||
* Example controller configuration
|
||||
*/
|
||||
|
||||
return array(
|
||||
'view_manager' => array(
|
||||
'editor' => 'sublime',
|
||||
'display_not_found_reason' => true,
|
||||
'display_exceptions' => true,
|
||||
'json_exceptions' => array(
|
||||
|
||||
Reference in New Issue
Block a user