mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
improved loading of composer autoload
This commit is contained in:
parent
31489a75d6
commit
7dae9e24da
1 changed files with 11 additions and 0 deletions
|
@ -22,6 +22,17 @@
|
|||
* @license https://opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Load Composer autoload.
|
||||
*
|
||||
* Remove and re-prepend CakePHP's autoloader as Composer thinks it is the most important.
|
||||
* @see http://goo.gl/kKVJO7
|
||||
* @see http://book.cakephp.org/2.0/en/installation/advanced-installation.html#installing-cakephp-with-composer
|
||||
*/
|
||||
require ROOT . DS . 'vendors/autoload.php';
|
||||
spl_autoload_unregister(array('App', 'load'));
|
||||
spl_autoload_register(array('App', 'load'), true, true);
|
||||
|
||||
// Setup a 'default' cache configuration for use in the application.
|
||||
Cache::config('default', array('engine' => 'File'));
|
||||
|
||||
|
|
Loading…
Reference in a new issue