1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #!/usr/bin/env php
- <?php
- /*
- * This file is part of the Symfony Standard Edition.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- require_once __DIR__.'/../vendor/symfony/src/Symfony/Component/ClassLoader/UniversalClassLoader.php';
- /*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- use Symfony\Component\ClassLoader\UniversalClassLoader;
- use Symfony\Component\ClassLoader\ClassCollectionLoader;
- $loader = new UniversalClassLoader();
- $loader->registerNamespaces(array('Symfony' => __DIR__.'/../vendor/symfony/src'));
- $loader->register();
- $file = __DIR__.'/../app/bootstrap.php.cache';
- if (file_exists($file)) {
- unlink($file);
- }
- ClassCollectionLoader::load(array(
- 'Symfony\\Component\\DependencyInjection\\ContainerInterface',
- 'Symfony\\Component\\DependencyInjection\\Container',
- 'Symfony\\Component\\DependencyInjection\\ContainerAwareInterface',
- 'Symfony\\Component\\DependencyInjection\\ContainerAware',
- 'Symfony\\Component\\HttpKernel\\Bundle\\BundleInterface',
- 'Symfony\\Component\\HttpKernel\\Bundle\\Bundle',
- 'Symfony\\Component\\HttpKernel\\Debug\\ErrorHandler',
- 'Symfony\\Component\\HttpKernel\\HttpKernelInterface',
- 'Symfony\\Component\\HttpKernel\\HttpKernel',
- 'Symfony\\Component\\HttpKernel\\KernelInterface',
- 'Symfony\\Component\\HttpKernel\\Kernel',
- 'Symfony\\Component\\HttpFoundation\\ParameterBag',
- 'Symfony\\Component\\HttpFoundation\\FileBag',
- 'Symfony\\Component\\HttpFoundation\\ServerBag',
- 'Symfony\\Component\\HttpFoundation\\HeaderBag',
- 'Symfony\\Component\\HttpFoundation\\Request',
- 'Symfony\\Component\\HttpFoundation\\ApacheRequest',
- 'Symfony\\Component\\ClassLoader\\ClassCollectionLoader',
- 'Symfony\\Component\\ClassLoader\\UniversalClassLoader',
- 'Symfony\\Component\\ClassLoader\\MapFileClassLoader',
- 'Symfony\\Component\\Config\\ConfigCache',
- ), dirname($file), basename($file, '.php.cache'), false, false, '.php.cache');
- file_put_contents($file, "<?php\n\nnamespace { require_once __DIR__.'/autoload.php'; }\n\n".substr(file_get_contents($file), 5));
- $file = __DIR__.'/../app/bootstrap_cache.php.cache';
- if (file_exists($file)) {
- unlink($file);
- }
- ClassCollectionLoader::load(array(
- 'Symfony\\Component\\HttpKernel\\KernelInterface',
- 'Symfony\\Component\\HttpKernel\\Kernel',
- 'Symfony\\Component\\HttpKernel\\HttpKernelInterface',
- 'Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache',
- 'Symfony\\Component\\HttpKernel\\HttpCache\\StoreInterface',
- 'Symfony\\Component\\HttpKernel\\HttpCache\\Store',
- 'Symfony\\Component\\HttpKernel\\HttpCache\\Esi',
- 'Symfony\\Component\\HttpFoundation\\ParameterBag',
- 'Symfony\\Component\\HttpFoundation\\FileBag',
- 'Symfony\\Component\\HttpFoundation\\ServerBag',
- 'Symfony\\Component\\HttpFoundation\\HeaderBag',
- 'Symfony\\Component\\HttpFoundation\\Request',
- 'Symfony\\Component\\HttpFoundation\\ApacheRequest',
- 'Symfony\\Component\\HttpFoundation\\ResponseHeaderBag',
- 'Symfony\\Component\\HttpFoundation\\Response',
- 'Symfony\\Component\\ClassLoader\\UniversalClassLoader',
- ), dirname($file), basename($file, '.php.cache'), false, false, '.php.cache');
- file_put_contents($file, "<?php\n\nnamespace { require_once __DIR__.'/autoload.php'; }\n\n".substr(file_get_contents($file), 5));
|