1234567891011121314151617181920212223242526272829303132 |
- <?php
- use Doctrine\Common\Annotations\AnnotationRegistry;
- if (!$loader = @include __DIR__.'/../vendor/autoload.php') {
- $message = <<< EOF
- <p>You must set up the project dependencies by running the following commands:</p>
- <pre>
- curl -s http://getcomposer.org/installer | php
- php composer.phar install
- </pre>
- EOF;
- if (PHP_SAPI === 'cli') {
- $message = strip_tags($message);
- }
- die($message);
- }
- // intl
- if (!function_exists('intl_get_error_code')) {
- require_once __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';
- $loader->add('', __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs');
- }
- AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
- return $loader;
|