Replaced $this->User->id by \FrontendUser::getInstance()