Beispiel #1
0
<?php

require_once __DIR__ . '/../../UniversalClassLoader.php';
/*
 * This file is part of the Symfony framework.
 *
 * (c) Fabien Potencier <*****@*****.**>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */
use Symfony\Framework\UniversalClassLoader;
use Symfony\Framework\ClassCollectionLoader;
$loader = new UniversalClassLoader();
$loader->registerNamespaces(array('Symfony' => __DIR__ . '/../../../..'));
$loader->register();
if (file_exists(__DIR__ . '/../../bootstrap.php')) {
    unlink(__DIR__ . '/../../bootstrap.php');
}
ClassCollectionLoader::load(array('Symfony\\Framework\\Bundle\\Bundle', 'Symfony\\Framework\\Bundle\\BundleInterface', 'Symfony\\Framework\\KernelBundle', 'Symfony\\Framework\\DependencyInjection\\KernelExtension', 'Symfony\\Framework\\Debug\\ErrorHandler', 'Symfony\\Framework\\ClassCollectionLoader', 'Symfony\\Framework\\EventDispatcher'), __DIR__ . '/../..', 'bootstrap', false);
Beispiel #2
0
<?php

require_once __DIR__ . '/vendor/symfony/src/Symfony/Framework/UniversalClassLoader.php';
use Symfony\Framework\UniversalClassLoader;
$loader = new UniversalClassLoader();
$loader->registerNamespaces(array('Symfony' => __DIR__ . '/vendor/symfony/src', 'Application' => __DIR__, 'Bundle' => __DIR__, 'Doctrine\\Common' => __DIR__ . '/vendor/doctrine/lib/vendor/doctrine-common/lib', 'Doctrine\\DBAL\\Migrations' => __DIR__ . '/vendor/doctrine-migrations/lib', 'Doctrine\\ODM\\MongoDB' => __DIR__ . '/vendor/doctrine-mongodb/lib', 'Doctrine\\DBAL' => __DIR__ . '/vendor/doctrine/lib/vendor/doctrine-dbal/lib', 'Doctrine' => __DIR__ . '/vendor/doctrine/lib', 'Zend' => __DIR__ . '/vendor/zend/library'));
$loader->registerPrefixes(array('Swift_' => __DIR__ . '/vendor/swiftmailer/lib/classes', 'Twig_' => __DIR__ . '/vendor/twig/lib'));
$loader->register();