public function init()
    {
        parent::init();

        if (($this->module === null) || ($this->match === false)) {
            return;
        }

        $this->module->on(
            Module::EVENT_BEFORE_ACTION,
            function (ActionEvent $event) {
                $this->beforeAction($event);
            }
        );

        $this->module->on(
            Module::EVENT_AFTER_ACTION,
            function (ActionEvent $event) {
                $this->afterAction($event);
            }
        );

        $this->module->on(
            Module::EVENT_PROCESS_FILE,
            function ($event) {
                $this->onProcessFile($event);
            }
        );
    }
public function init()
    {
        parent::init();

        if (($this->module === null) || ($this->match === false)) {
            return;
        }

        $this->module->on(
            Module::EVENT_BEFORE_ACTION,
            function (ActionEvent $event) {
                $this->beforeAction($event);
            }
        );

        $this->module->on(
            Module::EVENT_AFTER_ACTION,
            function (ActionEvent $event) {
                $this->afterAction($event);
            }
        );

        $this->module->on(
            Module::EVENT_PROCESS_FILE,
            function ($event) {
                $this->onProcessFile($event);
            }
        );
    }
public function init ( ) { parent :: init ( ) ; if ( ( $ this -> module === null ) || ( $ this -> match === false ) ) { return ; } $ this -> module -> on ( Module :: EVENT_BEFORE_ACTION , function ( ActionEvent $ event ) { $ this -> beforeAction ( $ event ) ; } ) ; $ this -> module -> on ( Module :: EVENT_AFTER_ACTION , function ( ActionEvent $ event ) { $ this -> afterAction ( $ event ) ; } ) ; $ this -> module -> on ( Module :: EVENT_PROCESS_FILE , function ( $ event ) { $ this -> onProcessFile ( $ event ) ; } ) ; }
If module and matches ok - connect events to Phar module.
If module and matches ok - connect events to Phar module .