public function init(ChainManagerInterface $chainManager, array $params = [])
    {
        $this->in($chainManager->getAssetManager());

        if ($chainManager->hasEvents()) {
            $event = $chainManager->getNextEvent();
            if (is_object($event)) {
                $event->init($chainManager);
            }
        }

        $this->out($chainManager->getAssetManager());

        return $this;
    }
public function init(ChainManagerInterface $chainManager, array $params = [])
    {
        $this->in($chainManager->getAssetManager());

        if ($chainManager->hasEvents()) {
            $event = $chainManager->getNextEvent();
            if (is_object($event)) {
                $event->init($chainManager);
            }
        }

        $this->out($chainManager->getAssetManager());

        return $this;
    }
public function init ( ChainManagerInterface $ chainManager , array $ params = [ ] ) { $ this -> in ( $ chainManager -> getAssetManager ( ) ) ; if ( $ chainManager -> hasEvents ( ) ) { $ event = $ chainManager -> getNextEvent ( ) ; if ( is_object ( $ event ) ) { $ event -> init ( $ chainManager ) ; } } $ this -> out ( $ chainManager -> getAssetManager ( ) ) ; return $ this ; }
Bootstrap this event.

Executes in() then init() on the next event= in the filter chain
before returning to execute out().

@param Proem\Filter\ChainManagerInterface $chainManager
@param array Optional extra parameters.
Bootstrap this event .