Add App::uses ClassRegistry in DatabaseLog.php