Пример #1
0
 /**
  * Boots the Bundle.
  *
  * @param Symfony\Components\DependencyInjection\ContainerInterface $container A ContainerInterface instance
  */
 public function boot(ContainerInterface $container)
 {
     $container->getErrorHandlerService();
     // load core classes
     if ($container->getParameter('kernel.include_core_classes')) {
         ClassCollectionLoader::load($container->getParameter('kernel.compiled_classes'), $container->getParameter('kernel.cache_dir'), 'classes', $container->getParameter('kernel.debug'));
     }
 }
Пример #2
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);