Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function init(array $data)
 {
     foreach ($data as $property => $value) {
         $this->{$property} = $data[$property];
     }
     if (isset($data['options'])) {
         $this->options = array_replace_recursive((array) $this->options, (array) $data['options']);
     }
     $this->loggerChannel->error($this->getMessage(), array('channel' => 'openlayers'));
     $this->messenger->addMessage($this->getMessage(), 'error', FALSE);
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function init()
 {
     parent::init();
     $this->loggerChannel->error($this->getMessage(), array('channel' => 'openlayers'));
     $this->messenger->addMessage($this->getMessage(), 'error', FALSE);
 }