12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- #!/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.
- */
- if (!$baseDir = realpath(__DIR__.'/../../../../../../..')) {
- exit('Looks like you don\'t have a standard layout.');
- }
- require_once $baseDir.'/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' => $baseDir.'/vendor/symfony/src'));
- $loader->register();
- $file = $baseDir.'/app/bootstrap.php.cache';
- if (file_exists($file)) {
- unlink($file);
- }
- ClassCollectionLoader::load(array(
- 'Symfony\\Component\\DependencyInjection\\ContainerInterface',
- 'Symfony\\Component\\DependencyInjection\\Container',
- '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 = $baseDir.'/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));
|