autoload.php 858 B

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