Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\View;
4
 
5
use ErrorException;
6
use Illuminate\Container\Container;
7
use Illuminate\Support\Reflector;
8
 
9
class ViewException extends ErrorException
10
{
11
    /**
12
     * Report the exception.
13
     *
14
     * @return bool|null
15
     */
16
    public function report()
17
    {
18
        $exception = $this->getPrevious();
19
 
20
        if (Reflector::isCallable($reportCallable = [$exception, 'report'])) {
21
            return Container::getInstance()->call($reportCallable);
22
        }
23
 
24
        return false;
25
    }
26
 
27
    /**
28
     * Render the exception into an HTTP response.
29
     *
30
     * @param  \Illuminate\Http\Request  $request
31
     * @return \Illuminate\Http\Response|null
32
     */
33
    public function render($request)
34
    {
35
        $exception = $this->getPrevious();
36
 
37
        if ($exception && method_exists($exception, 'render')) {
38
            return $exception->render($request);
39
        }
40
    }
41
}