1
0
Fork 0

[composer] wrap UniversalClassLoader require in if class_exists

pull/61/head
Igor Wiedler 2011-10-16 21:43:19 +02:00 committed by Jordi Boggiano
parent aa7c4b8ef7
commit 808a2c9448
1 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,9 @@ class AutoloadGenerator
<?php
// 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;