ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilDelegatingHandler.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2015 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
23require_once("./Services/Exceptions/lib/Whoops/Run.php");
24require_once("./Services/Exceptions/lib/Whoops/Handler/HandlerInterface.php");
25require_once("./Services/Exceptions/lib/Whoops/Handler/Handler.php");
26
28
29final class ilDelegatingHandler extends Handler {
34
36 $this->error_handling = $error_handling;
37 }
38
47 public function handle() {
48 if (defined("IL_INITIAL_WD"))
49 {
50 chdir(IL_INITIAL_WD);
51 }
52 $handler = $this->error_handling->getHandler();
53 $handler->setRun($this->getRun());
54 $handler->setException($this->getException());
55 $handler->setInspector($this->getInspector());
56 $handler->handle();
57 }
58}
59
60?>
Abstract implementation of a Handler.
Definition: Handler.php:17
__construct(ilErrorHandling $error_handling)
handle()
Last missing method from HandlerInterface.
const IL_INITIAL_WD
Definition: error.php:5