Crud\Listener\ApiQueryLogListener::beforeRender PHP Méthode

beforeRender() public méthode

Appends the query log to the JSON or XML output
public beforeRender ( Cake\Event\Event $event ) : void
$event Cake\Event\Event Event
Résultat void
    public function beforeRender(Event $event)
    {
        if (!Configure::read('debug')) {
            return;
        }
        $this->_action()->config('serialize.queryLog', 'queryLog');
        $this->_controller()->set('queryLog', $this->_getQueryLogs());
    }