Register ClassLoader (php 5.4 update)

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