-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18bf776
commit 1f2fa2a
Showing
19 changed files
with
125 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,66 @@ | ||
<?php namespace Config; | ||
<?php | ||
|
||
require_once SYSTEMPATH . 'Config/AutoloadConfig.php'; | ||
namespace Config; | ||
|
||
use CodeIgniter\Config\AutoloadConfig; | ||
|
||
/** | ||
* ------------------------------------------------------------------- | ||
* AUTO-LOADER | ||
* ------------------------------------------------------------------- | ||
* 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 | ||
* the values in this file will overwrite the framework's values. | ||
*/ | ||
class Autoload extends \CodeIgniter\Config\AutoloadConfig | ||
class Autoload extends AutoloadConfig | ||
{ | ||
public $psr4 = []; | ||
|
||
public $classmap = []; | ||
|
||
//-------------------------------------------------------------------- | ||
|
||
/** | ||
* Collects the application-specific autoload settings and merges | ||
* them with the framework's required settings. | ||
* ------------------------------------------------------------------- | ||
* 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. | ||
* | ||
* NOTE: If you use an identical key in $psr4 or $classmap, then | ||
* the values in this file will overwrite the framework's values. | ||
* Prototype: | ||
* | ||
* $psr4 = [ | ||
* 'CodeIgniter' => SYSTEMPATH, | ||
* 'App' => APPPATH | ||
* ]; | ||
* | ||
* @var array | ||
*/ | ||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
|
||
/** | ||
* ------------------------------------------------------------------- | ||
* 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', | ||
]; | ||
|
||
/** | ||
* ------------------------------------------------------------------- | ||
* 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 = []; | ||
|
||
//-------------------------------------------------------------------- | ||
// Do Not Edit Below This Line | ||
//-------------------------------------------------------------------- | ||
|
||
$this->psr4 = array_merge($this->psr4, $psr4); | ||
$this->classmap = array_merge($this->classmap, $classmap); | ||
|
||
unset($psr4, $classmap); | ||
} | ||
|
||
//-------------------------------------------------------------------- | ||
public $psr4 = [ | ||
APP_NAMESPACE => APPPATH, // For custom app namespace | ||
'Config' => APPPATH . 'Config', | ||
]; | ||
|
||
/** | ||
* ------------------------------------------------------------------- | ||
* 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 | ||
*/ | ||
public $classmap = []; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php | ||
|
||
// override core en language system validation or define your own en language validation message | ||
return []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.