Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 399 Revision 621
Zeile 65... Zeile 65...
65
     * @var array
65
     * @var array
66
     */
66
     */
67
    protected $paths = [];
67
    protected $paths = [];
Zeile 68... Zeile 68...
68
 
68
 
-
 
69
    /**
-
 
70
     * The paths that have already been required.
-
 
71
     *
-
 
72
     * @var array<string, \Illuminate\Database\Migrations\Migration|null>
-
 
73
     */
-
 
74
    protected static $requiredPathCache = [];
-
 
75
 
69
    /**
76
    /**
70
     * The output interface implementation.
77
     * The output interface implementation.
71
     *
78
     *
72
     * @var \Symfony\Component\Console\Output\OutputInterface
79
     * @var \Symfony\Component\Console\Output\OutputInterface
73
     */
80
     */
Zeile 509... Zeile 516...
509
 
516
 
510
        if (class_exists($class) && realpath($path) == (new ReflectionClass($class))->getFileName()) {
517
        if (class_exists($class) && realpath($path) == (new ReflectionClass($class))->getFileName()) {
511
            return new $class;
518
            return new $class;
Zeile 512... Zeile 519...
512
        }
519
        }
Zeile 513... Zeile 520...
513
 
520
 
-
 
521
        $migration = static::$requiredPathCache[$path] ??= $this->files->getRequire($path);
-
 
522
 
-
 
523
        if (is_object($migration)) {
-
 
524
            return clone $migration;
514
        $migration = $this->files->getRequire($path);
525
        }
Zeile 515... Zeile 526...
515
 
526
 
516
        return is_object($migration) ? $migration : new $class;
527
        return new $class;
517
    }
528
    }