You are here

public function ConfigurationManager::registerEvents in Configuration Management 7.3

File

src/ConfigurationManager.php, line 120

Class

ConfigurationManager

Namespace

Configuration

Code

public function registerEvents() {
  $this->dispatcher = new EventDispatcher();
  foreach (iterator_to_array($this->handlers) as $handler) {
    $this->dispatcher
      ->addSubscriber($handler);
  }
  foreach (iterator_to_array($this->proccesors) as $processor) {
    $this->dispatcher
      ->addSubscriber($processor);
  }
  return $this;
}