1
0
Fork 0

[composer] wrap UniversalClassLoader require in if class_exists

pull/44/head
Igor Wiedler 2011-10-16 21:43:19 +02:00
parent e71fcdc0f5
commit dd3e11ed81
1 changed files with 3 additions and 1 deletions

View File

@ -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;