classes/Errors/ErrorHandlerProvider.php
public function register()
	{
		$dic = $this->app->getContainer();
		$debug = $this->app->getConfig()->get('app.debug');

		$this->manager = new ErrorHandlerManager(
			new HandlerResolver($dic)
		);

		$this->manager->setDefaultHandler(new DefaultErrorHandler($debug));

		$this->app->setErrorHandler($this->manager);

		if ($this->register) {
			$this->manager->register();
		}

		$dic->instance('Autarky\Errors\ErrorHandlerManager', $this->manager);
		$dic->alias('Autarky\Errors\ErrorHandlerManager', 'Autarky\Errors\ErrorHandlerManagerInterface');

		$this->app->config([$this, 'configureErrorHandler']);
	}
public function register()
	{
		$dic = $this->app->getContainer();
		$debug = $this->app->getConfig()->get('app.debug');

		$this->manager = new ErrorHandlerManager(
			new HandlerResolver($dic)
		);

		$this->manager->setDefaultHandler(new DefaultErrorHandler($debug));

		$this->app->setErrorHandler($this->manager);

		if ($this->register) {
			$this->manager->register();
		}

		$dic->instance('Autarky\Errors\ErrorHandlerManager', $this->manager);
		$dic->alias('Autarky\Errors\ErrorHandlerManager', 'Autarky\Errors\ErrorHandlerManagerInterface');

		$this->app->config([$this, 'configureErrorHandler']);
	}
{@inheritdoc}