src/Debug/ErrorHandlerIntegration.php
public function define(ContainerInterface $container, Configuration $config)
    {
        $environment = $config->get('app.environment', 'development');

        $handler = new ErrorHandler($environment);

        if (interface_exists('Whoops\RunInterface') === true) {
            $whoops = new \Whoops\Run;

            $handler = new WhoopsErrorHandler($whoops, $environment);
        }

        if ($environment === 'development') {
            error_reporting(E_ALL) && ini_set('display_errors', 1);

            // NOTE: To be removed in v1.0.0. Use $handler->display() instead.
            $container->set(Application::ERROR_HANDLER, $handler);
        }

        return $container;
    }
public function define(ContainerInterface $container, Configuration $config)
    {
        $environment = $config->get('app.environment', 'development');

        $handler = new ErrorHandler($environment);

        if (interface_exists('Whoops\RunInterface') === true) {
            $whoops = new \Whoops\Run;

            $handler = new WhoopsErrorHandler($whoops, $environment);
        }

        if ($environment === 'development') {
            error_reporting(E_ALL) && ini_set('display_errors', 1);

            // NOTE: To be removed in v1.0.0. Use $handler->display() instead.
            $container->set(Application::ERROR_HANDLER, $handler);
        }

        return $container;
    }
Defines the specified integration.

@param  \Rougin\Slytherin\Container\ContainerInterface $container
@param  \Rougin\Slytherin\Integration\Configuration    $config
@return \Rougin\Slytherin\Container\ContainerInterface