autoload.php 861 B

1234567891011121314151617181920212223242526272829
  1. <?php declare (strict_types = 1);
  2. /*******************************************************************************
  3. * Front Controller
  4. * *****************************************************************************
  5. * This file serves as the front controller for the ePHPic Autoloader.
  6. *
  7. * @package ePHPic\Autoload
  8. * @version 1.0.0
  9. * @author Sina Kuhestani <sina@ephpic.org>
  10. * @license MIT License
  11. * @copyright 2025 © Sina Kuhestani
  12. * @link https://code.ephpic.org/ephpic/autoload
  13. ******************************************************************************/
  14. $autoloaderFilePathArray = [
  15. __DIR__,
  16. 'src',
  17. 'Autoloader.php'
  18. ];
  19. /* Autoloader file */
  20. $autoloaderFilePath = implode (
  21. separator: DIRECTORY_SEPARATOR,
  22. array: $autoloaderFilePathArray
  23. );
  24. /* Include Autoloader file */
  25. require_once $autoloaderFilePath;