Skip to content

Commit

Permalink
improved loading of composer autoload
Browse files Browse the repository at this point in the history
  • Loading branch information
bancer committed Jul 20, 2017
1 parent 31489a7 commit 7dae9e2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/Config/bootstrap.php
Expand Up @@ -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'));

Expand Down

0 comments on commit 7dae9e2

Please sign in to comment.