Skip to content

Commit

Permalink
[project-base] fix dump function (#1745)
Browse files Browse the repository at this point in the history
  • Loading branch information
henzigo authored Apr 22, 2020
1 parent 6aef53f commit f1a4c50
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@

use Doctrine\Common\Annotations\AnnotationRegistry;

$symfonyDumpFunctionPath = 'vendor/symfony/var-dumper/Resources/functions/dump.php';

if (file_exists(__DIR__ . '/../' . $symfonyDumpFunctionPath)) {
require_once __DIR__ . '/../' . $symfonyDumpFunctionPath;
}

if (file_exists(__DIR__ . '/../../' . $symfonyDumpFunctionPath)) {
require_once __DIR__ . '/../../' . $symfonyDumpFunctionPath;
}

/* @var \Composer\Autoload\ClassLoader $loader */
$loader = file_exists(__DIR__ . '/../vendor/autoload.php') ? require __DIR__ . '/../vendor/autoload.php' : require __DIR__ . '/../../vendor/autoload.php';

Expand Down

0 comments on commit f1a4c50

Please sign in to comment.