Skip to content
Permalink
Browse files

improved loading of composer autoload

  • Loading branch information...
bancer committed Jul 20, 2017
1 parent 31489a7 commit 7dae9e24dac90ba5c55db17e96cabf9d1a80c1d0
Showing with 11 additions and 0 deletions.
  1. +11 −0 app/Config/bootstrap.php
@@ -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'));

0 comments on commit 7dae9e2

Please sign in to comment.
You can’t perform that action at this time.