autoload.php.dist 618 B

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