Thruway\Role\Broker::setStateHandlerRegistry PHP Method

setStateHandlerRegistry() public method

public setStateHandlerRegistry ( StateHandlerRegistry $stateHandlerRegistry )
$stateHandlerRegistry Thruway\Subscription\StateHandlerRegistry
    public function setStateHandlerRegistry($stateHandlerRegistry)
    {
        $this->stateHandlerRegistry = $stateHandlerRegistry;
    }

Usage Example

Esempio n. 1
0
 /**
  * Gets called when the module is initialized in the router
  *
  * @inheritdoc
  */
 public function initModule(RouterInterface $router, LoopInterface $loop)
 {
     parent::initModule($router, $loop);
     $this->routerRealm = $router->getRealmManager()->getRealm($this->getRealm());
     $this->broker = $this->routerRealm->getBroker();
     $this->broker->setStateHandlerRegistry($this);
 }