protected function initializeSubscribers() { parent::initializeSubscribers(); $this->subscribers['api.error'] = [$this, 'handlerApiError']; }