autoload.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. define('LARAVEL_START', microtime(true));
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Register The Composer Auto Loader
  6. |--------------------------------------------------------------------------
  7. |
  8. | Composer provides a convenient, automatically generated class loader
  9. | for our application. We just need to utilize it! We'll require it
  10. | into the script here so that we do not have to worry about the
  11. | loading of any our classes "manually". Feels great to relax.
  12. |
  13. */
  14. require __DIR__.'/../vendor/autoload.php';
  15. /*
  16. |--------------------------------------------------------------------------
  17. | Include The Compiled Class File
  18. |--------------------------------------------------------------------------
  19. |
  20. | To dramatically increase your application's performance, you may use a
  21. | compiled class file which contains all of the classes commonly used
  22. | by a request. The Artisan "optimize" is used to create this file.
  23. |
  24. */
  25. $compiledPath = __DIR__.'/../storage/meta/compiled.php';
  26. if (file_exists($compiledPath))
  27. {
  28. require $compiledPath;
  29. }
  30. /*
  31. |--------------------------------------------------------------------------
  32. | Register The Workbench Loaders
  33. |--------------------------------------------------------------------------
  34. |
  35. | The Laravel workbench provides a convenient place to develop packages
  36. | when working locally. However we will need to load in the Composer
  37. | auto-load files for the packages so that these can be used here.
  38. |
  39. */
  40. if (is_dir($workbench = __DIR__.'/../workbench'))
  41. {
  42. Illuminate\Workbench\Starter::start($workbench);
  43. }