public function subscribe(EventManager $eventManager)
    {
        $eventManager->attach(self::EVENT_BEFORE_WEB_METHOD, [$this, 'beforeWebMethod'])
            ->attach(self::EVENT_AFTER_WEB_METHOD, [$this, 'afterWebMethod'])
            ->attach(self::EVENT_BEFORE_CLI_METHOD, [$this, 'beforeCLiMethod'])
            ->attach(self::EVENT_AFTER_CLI_METHOD, [$this, 'afterCLiMethod']);
    }