2022-03-14 19:13:10 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Config;
|
|
|
|
|
|
|
|
use CodeIgniter\Config\AutoloadConfig;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* -------------------------------------------------------------------
|
|
|
|
* AUTOLOADER CONFIGURATION
|
|
|
|
* -------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* This file defines the namespaces and class maps so the Autoloader
|
|
|
|
* can find the files as needed.
|
|
|
|
*
|
|
|
|
* NOTE: If you use an identical key in $psr4 or $classmap, then
|
2024-04-07 22:17:30 +02:00
|
|
|
* the values in this file will overwrite the framework's values.
|
|
|
|
*
|
|
|
|
* NOTE: This class is required prior to Autoloader instantiation,
|
|
|
|
* and does not extend BaseConfig.
|
|
|
|
*
|
|
|
|
* @immutable
|
2022-03-14 19:13:10 +01:00
|
|
|
*/
|
|
|
|
class Autoload extends AutoloadConfig
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* -------------------------------------------------------------------
|
|
|
|
* Namespaces
|
|
|
|
* -------------------------------------------------------------------
|
|
|
|
* This maps the locations of any namespaces in your application to
|
|
|
|
* their location on the file system. These are used by the autoloader
|
|
|
|
* to locate files the first time they have been instantiated.
|
|
|
|
*
|
2024-04-07 22:17:30 +02:00
|
|
|
* The 'Config' (APPPATH . 'Config') and 'CodeIgniter' (SYSTEMPATH) are
|
|
|
|
* already mapped for you.
|
|
|
|
*
|
|
|
|
* You may change the name of the 'App' namespace if you wish,
|
2022-03-14 19:13:10 +01:00
|
|
|
* but this should be done prior to creating any namespaced classes,
|
|
|
|
* else you will need to modify all of those classes for this to work.
|
|
|
|
*
|
2024-04-07 22:17:30 +02:00
|
|
|
* @var array<string, list<string>|string>
|
2022-03-14 19:13:10 +01:00
|
|
|
*/
|
|
|
|
public $psr4 = [
|
2024-04-07 22:17:30 +02:00
|
|
|
APP_NAMESPACE => APPPATH,
|
2022-03-14 19:13:10 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* -------------------------------------------------------------------
|
|
|
|
* Class Map
|
|
|
|
* -------------------------------------------------------------------
|
|
|
|
* The class map provides a map of class names and their exact
|
|
|
|
* location on the drive. Classes loaded in this manner will have
|
|
|
|
* slightly faster performance because they will not have to be
|
|
|
|
* searched for within one or more directories as they would if they
|
|
|
|
* were being autoloaded through a namespace.
|
|
|
|
*
|
|
|
|
* Prototype:
|
|
|
|
* $classmap = [
|
|
|
|
* 'MyClass' => '/path/to/class/file.php'
|
|
|
|
* ];
|
|
|
|
*
|
|
|
|
* @var array<string, string>
|
|
|
|
*/
|
|
|
|
public $classmap = [];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* -------------------------------------------------------------------
|
|
|
|
* Files
|
|
|
|
* -------------------------------------------------------------------
|
|
|
|
* The files array provides a list of paths to __non-class__ files
|
|
|
|
* that will be autoloaded. This can be useful for bootstrap operations
|
|
|
|
* or for loading functions.
|
|
|
|
*
|
|
|
|
* Prototype:
|
2024-04-07 22:17:30 +02:00
|
|
|
* $files = [
|
|
|
|
* '/path/to/my/file.php',
|
|
|
|
* ];
|
2022-03-14 19:13:10 +01:00
|
|
|
*
|
2024-04-07 22:17:30 +02:00
|
|
|
* @var list<string>
|
2022-03-14 19:13:10 +01:00
|
|
|
*/
|
|
|
|
public $files = [];
|
2024-04-07 22:17:30 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* -------------------------------------------------------------------
|
|
|
|
* Helpers
|
|
|
|
* -------------------------------------------------------------------
|
|
|
|
* Prototype:
|
|
|
|
* $helpers = [
|
|
|
|
* 'form',
|
|
|
|
* ];
|
|
|
|
*
|
|
|
|
* @var list<string>
|
|
|
|
*/
|
|
|
|
public $helpers = [];
|
2022-03-14 19:13:10 +01:00
|
|
|
}
|