initializeSubscribers() protected méthode

The use of the subscribers is to transform object to array
protected initializeSubscribers ( )
Exemple #1
0
 /**
  * {@inheritdoc}
  * @see AbstractLogger::initializeSubscribers()
  */
 protected function initializeSubscribers()
 {
     parent::initializeSubscribers();
     $this->subscribers['user.log'] = [$this, 'handlerUserLog'];
 }
Exemple #2
0
 /**
  * {@inheritdoc}
  * @see AbstractLogger::initializeSubscribers()
  */
 protected function initializeSubscribers()
 {
     parent::initializeSubscribers();
     $this->subscribers['api.error'] = [$this, 'handlerApiError'];
 }
Exemple #3
0
 /**
  * {@inheritdoc}
  * @see AbstractLogger::initializeSubscribers()
  */
 protected function initializeSubscribers()
 {
     parent::initializeSubscribers();
     $this->subscribers['farm.terminate'] = [$this, 'handlerFarmLaunch'];
     $this->subscribers['farm.launch'] = [$this, 'handlerFarmLaunch'];
     $this->subscribers['user.auth.login'] = [$this, 'handlerUserAuthLogin'];
     $this->subscribers['script.execute'] = [$this, 'handleScriptExecute'];
 }