Register ClassLoader (php 5.4)

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