Skip to content
Permalink
Browse files

Register ClassLoader (php 5.4)

$loader = new \Cake\Core\ClassLoader('Cake', CORE_PATH);
$loader->register();

to

(new \Cake\Core\ClassLoader('Cake', CORE_PATH))->register();
  • Loading branch information...
kakuzu committed Jun 23, 2013
1 parent bec7cbf commit 1d77ff8c654f9b6c02ee0c98ea52df2a6ce192cd
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/Cake/bootstrap.php
@@ -26,8 +26,7 @@
if (!class_exists('Cake\Core\App')) {
require CAKE . 'Core/ClassLoader.php';
$loader = new \Cake\Core\ClassLoader('Cake', CORE_PATH);
$loader->register();
(new \Cake\Core\ClassLoader('Cake', CORE_PATH))->register();
}
use Cake\Core\App;

0 comments on commit 1d77ff8

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