[composer] wrap UniversalClassLoader require in if class_exists
parent
aa7c4b8ef7
commit
808a2c9448
|
@ -42,7 +42,9 @@ class AutoloadGenerator
|
||||||
<?php
|
<?php
|
||||||
// autoload.php generated by composer
|
// autoload.php generated by composer
|
||||||
|
|
||||||
require_once __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/ClassLoader/UniversalClassLoader.php';
|
if (false === class_exists('Symfony\Component\ClassLoader\UniversalClassLoader', false)) {
|
||||||
|
require __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/ClassLoader/UniversalClassLoader.php';
|
||||||
|
}
|
||||||
|
|
||||||
use Symfony\Component\ClassLoader\UniversalClassLoader;
|
use Symfony\Component\ClassLoader\UniversalClassLoader;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue