autoload.php.dist 522 B

123456789101112131415161718192021222324252627
  1. <?php
  2. // if the bundle is within a symfony project, try to reuse the project's autoload
  3. $files = array(
  4. __DIR__.'/../../vendor/autoload.php',
  5. );
  6. $autoload = false;
  7. foreach ($files as $file) {
  8. if (is_file($file)) {
  9. $autoload = include_once $file;
  10. break;
  11. }
  12. }
  13. if (!$autoload) {
  14. die('Unable to find autoload.php file, please use composer to load dependencies:
  15. wget http://getcomposer.org/composer.phar
  16. php composer.phar install
  17. Visit http://getcomposer.org/ for more information.
  18. ');
  19. }