Autoload.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. namespace Config;
  3. use CodeIgniter\Config\AutoloadConfig;
  4. /**
  5. * -------------------------------------------------------------------
  6. * AUTO-LOADER
  7. * -------------------------------------------------------------------
  8. * This file defines the namespaces and class maps so the Autoloader
  9. * can find the files as needed.
  10. *
  11. * NOTE: If you use an identical key in $psr4 or $classmap, then
  12. * the values in this file will overwrite the framework's values.
  13. */
  14. class Autoload extends AutoloadConfig
  15. {
  16. /**
  17. * -------------------------------------------------------------------
  18. * Namespaces
  19. * -------------------------------------------------------------------
  20. * This maps the locations of any namespaces in your application to
  21. * their location on the file system. These are used by the autoloader
  22. * to locate files the first time they have been instantiated.
  23. *
  24. * The '/app' and '/system' directories are already mapped for you.
  25. * you may change the name of the 'App' namespace if you wish,
  26. * but this should be done prior to creating any namespaced classes,
  27. * else you will need to modify all of those classes for this to work.
  28. *
  29. * Prototype:
  30. *
  31. * $psr4 = [
  32. * 'CodeIgniter' => SYSTEMPATH,
  33. * 'App' => APPPATH
  34. * ];
  35. *
  36. * @var array
  37. */
  38. public $psr4 = [
  39. APP_NAMESPACE => APPPATH, // For custom app namespace
  40. 'Config' => APPPATH . 'Config',
  41. 'PHPMailer\\PHPMailer'=> ROOTPATH.'PHPMailer/src',
  42. ];
  43. /**
  44. * -------------------------------------------------------------------
  45. * Class Map
  46. * -------------------------------------------------------------------
  47. * The class map provides a map of class names and their exact
  48. * location on the drive. Classes loaded in this manner will have
  49. * slightly faster performance because they will not have to be
  50. * searched for within one or more directories as they would if they
  51. * were being autoloaded through a namespace.
  52. *
  53. * Prototype:
  54. *
  55. * $classmap = [
  56. * 'MyClass' => '/path/to/class/file.php'
  57. * ];
  58. *
  59. * @var array
  60. */
  61. public $classmap = [ 'TCPDF'=>'/srv/http/andrinaPerfectBeauty.com/tecnickcom/tcpdf/tcpdf.php'
  62. ];
  63. }