Пример #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\Foundation\UniversalClassLoader;
use Symfony\Foundation\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\\Foundation\\Bundle\\Bundle', 'Symfony\\Foundation\\Bundle\\BundleInterface', 'Symfony\\Foundation\\Bundle\\KernelBundle', 'Symfony\\Foundation\\Bundle\\KernelExtension', 'Symfony\\Foundation\\Debug\\ErrorHandler', 'Symfony\\Foundation\\ClassCollectionLoader', 'Symfony\\Foundation\\Kernel', 'Symfony\\Foundation\\EventDispatcher'), __DIR__, 'bootstrap', false);
Пример #2
0
<?php

require_once __DIR__ . '/vendor/symfony/src/Symfony/Foundation/UniversalClassLoader.php';
use Symfony\Foundation\UniversalClassLoader;
$loader = new UniversalClassLoader();
$loader->registerNamespaces(array('Symfony' => __DIR__ . '/vendor/symfony/src', 'Application' => __DIR__, 'Bundle' => __DIR__, 'Doctrine' => __DIR__ . '/vendor/doctrine/lib', 'DoctrineMigrations' => __DIR__ . '/vendor/migrations/lib'));
$loader->registerPrefixes(array('Swift_' => __DIR__ . '/vendor/swiftmailer/lib/classes', 'Zend_' => '/usr/local/src/zend/library'));
$loader->register();
// for Zend Framework & SwiftMailer
set_include_path('/usr/local/src/zend/library' . PATH_SEPARATOR . __DIR__ . '/vendor/swiftmailer/lib' . PATH_SEPARATOR . get_include_path());
$classLoader = new \Doctrine\Common\ClassLoader('DoctrineExtensions', __DIR__ . '/vendor/migrations/lib');
$classLoader->register();
Пример #3
0
<?php

require_once __DIR__ . '/vendor/symfony/src/Symfony/Foundation/UniversalClassLoader.php';
use Symfony\Foundation\UniversalClassLoader;
$loader = new UniversalClassLoader();
$loader->registerNamespaces(array('Symfony' => __DIR__ . '/vendor/symfony/src', 'Goutte' => __DIR__));
$loader->registerPrefixes(array('Zend_' => __DIR__ . '/vendor/zend/library'));
$loader->register();
set_include_path(__DIR__ . '/vendor/zend/library' . PATH_SEPARATOR . get_include_path());
Пример #4
0
<?php

require_once __DIR__ . '/vendor/Symfony/src/Symfony/Foundation/UniversalClassLoader.php';
use Symfony\Foundation\UniversalClassLoader;
$loader = new UniversalClassLoader();
$loader->registerNamespaces(array('Symfony' => __DIR__ . '/vendor/Symfony/src', 'Bundle' => __DIR__));
$loader->register();
Пример #5
0
<?php

require_once $_SERVER['SYMFONY2_DIR'] . '/Symfony/Foundation/UniversalClassLoader.php';
use Symfony\Foundation\UniversalClassLoader;
$loader = new UniversalClassLoader();
$loader->registerNamespaces(array('Symfony' => $_SERVER['SYMFONY2_DIR'], 'Bundle' => realpath(__DIR__ . '/../../..'), 'Doctrine\\ODM' => $_SERVER['DOCTRINE2_ODM_DIR'], 'Doctrine' => $_SERVER['DOCTRINE2_DIR']));
$loader->register();
Пример #6
0
<?php

require_once __DIR__ . '/vendor/symfony/src/Symfony/Foundation/UniversalClassLoader.php';
use Symfony\Foundation\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();
Пример #7
0
<?php

require_once __DIR__ . '/vendor/symfony/src/Symfony/Foundation/UniversalClassLoader.php';
use Symfony\Foundation\UniversalClassLoader;
$loader = new UniversalClassLoader();
$loader->registerNamespaces(array('OpenSky' => __DIR__ . '/lib', 'Symfony' => __DIR__ . '/vendor/symfony'));
$loader->registerPrefixes(array('Zend_' => __DIR__ . '/vendor/zend/library'));
$loader->register();