2020-05-29 16:25:17 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Config;
|
2020-05-27 18:46:16 +02:00
|
|
|
|
|
|
|
require_once SYSTEMPATH . 'Config/AutoloadConfig.php';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* -------------------------------------------------------------------
|
|
|
|
* AUTO-LOADER
|
|
|
|
* -------------------------------------------------------------------
|
|
|
|
* This file defines the namespaces and class maps so the Autoloader
|
|
|
|
* can find the files as needed.
|
|
|
|
*/
|
|
|
|
class Autoload extends \CodeIgniter\Config\AutoloadConfig
|
|
|
|
{
|
2020-06-10 15:00:12 +00:00
|
|
|
public $psr4 = [
|
|
|
|
'App' => APPPATH,
|
|
|
|
];
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
public $classmap = [];
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
//--------------------------------------------------------------------
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
/**
|
|
|
|
* Collects the application-specific autoload settings and merges
|
|
|
|
* them with the framework's required settings.
|
|
|
|
*
|
|
|
|
* NOTE: If you use an identical key in $psr4 or $classmap, then
|
|
|
|
* the values in this file will overwrite the framework's values.
|
|
|
|
*/
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
parent::__construct();
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
/**
|
|
|
|
* -------------------------------------------------------------------
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* The '/app' and '/system' directories are already mapped for
|
|
|
|
* you. You may change the name of the 'App' namespace if you wish,
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* DO NOT change the name of the CodeIgniter namespace or your application
|
|
|
|
* WILL break. *
|
|
|
|
* Prototype:
|
|
|
|
*
|
|
|
|
* $Config['psr4'] = [
|
|
|
|
* 'CodeIgniter' => SYSPATH
|
|
|
|
* `];
|
|
|
|
*/
|
|
|
|
$psr4 = [
|
|
|
|
'App' => APPPATH, // To ensure filters, etc still found,
|
|
|
|
APP_NAMESPACE => APPPATH, // For custom namespace
|
|
|
|
'Config' => APPPATH . 'Config',
|
|
|
|
];
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2020-06-10 15:00:12 +00: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:
|
|
|
|
*
|
|
|
|
* $Config['classmap'] = [
|
|
|
|
* 'MyClass' => '/path/to/class/file.php'
|
|
|
|
* ];
|
|
|
|
*/
|
|
|
|
$classmap = [];
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
//--------------------------------------------------------------------
|
|
|
|
// Do Not Edit Below This Line
|
|
|
|
//--------------------------------------------------------------------
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
$this->psr4 = array_merge($this->psr4, $psr4);
|
|
|
|
$this->classmap = array_merge($this->classmap, $classmap);
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
unset($psr4, $classmap);
|
|
|
|
}
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
//--------------------------------------------------------------------
|
2020-05-27 18:46:16 +02:00
|
|
|
}
|