123456789101112131415161718192021222324252627 |
- <?php
- // if the bundle is within a symfony project, try to reuse the project's autoload
- $files = array(
- __DIR__.'/../../vendor/autoload.php',
- );
- $autoload = false;
- foreach ($files as $file) {
- if (is_file($file)) {
- $autoload = include_once $file;
- break;
- }
- }
- if (!$autoload) {
- die('Unable to find autoload.php file, please use composer to load dependencies:
- wget http://getcomposer.org/composer.phar
- php composer.phar install
- Visit http://getcomposer.org/ for more information.
- ');
- }
|