Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 688
Zeile 302... Zeile 302...
302
     *
302
     *
303
     * @return \Whoops\Exception\FrameCollection
303
     * @return \Whoops\Exception\FrameCollection
304
     */
304
     */
305
    protected function getExceptionFrames()
305
    protected function getExceptionFrames()
306
    {
306
    {
307
        $frames = $this->getInspector()->getFrames();
307
        $frames = $this->getInspector()->getFrames($this->getRun()->getFrameFilters());
Zeile 308... Zeile 308...
308
 
308
 
309
        if ($this->getApplicationPaths()) {
309
        if ($this->getApplicationPaths()) {
310
            foreach ($frames as $frame) {
310
            foreach ($frames as $frame) {
311
                foreach ($this->getApplicationPaths() as $path) {
311
                foreach ($this->getApplicationPaths() as $path) {
Zeile 351... Zeile 351...
351
     *
351
     *
352
     * The expected data is a simple associative array. Any nested arrays
352
     * The expected data is a simple associative array. Any nested arrays
353
     * will be flattened with `print_r`.
353
     * will be flattened with `print_r`.
354
     *
354
     *
355
     * @param string $label
355
     * @param string $label
356
     * @param array  $data
-
 
357
     *
356
     *
358
     * @return static
357
     * @return static
359
     */
358
     */
360
    public function addDataTable($label, array $data)
359
    public function addDataTable($label, array $data)
361
    {
360
    {
Zeile 381... Zeile 380...
381
    {
380
    {
382
        if (!is_callable($callback)) {
381
        if (!is_callable($callback)) {
383
            throw new InvalidArgumentException('Expecting callback argument to be callable');
382
            throw new InvalidArgumentException('Expecting callback argument to be callable');
384
        }
383
        }
Zeile 385... Zeile 384...
385
 
384
 
386
        $this->extraTables[$label] = function (\Whoops\Exception\Inspector $inspector = null) use ($callback) {
385
        $this->extraTables[$label] = function (\Whoops\Inspector\InspectorInterface $inspector = null) use ($callback) {
387
            try {
386
            try {
Zeile 388... Zeile 387...
388
                $result = call_user_func($callback, $inspector);
387
                $result = call_user_func($callback, $inspector);
389
 
388
 
Zeile 752... Zeile 751...
752
        return $this->applicationPaths;
751
        return $this->applicationPaths;
753
    }
752
    }
Zeile 754... Zeile 753...
754
 
753
 
755
    /**
754
    /**
756
     * Set the application paths.
755
     * Set the application paths.
757
     *
-
 
758
     * @param array $applicationPaths
-
 
759
     *
756
     * 
760
     * @return void
757
     * @return void
761
     */
758
     */
762
    public function setApplicationPaths($applicationPaths)
759
    public function setApplicationPaths(array $applicationPaths)
763
    {
760
    {
764
        $this->applicationPaths = $applicationPaths;
761
        $this->applicationPaths = $applicationPaths;
Zeile 765... Zeile 762...
765
    }
762
    }