protected function getCommandsByMethodEventType($method, $event_type)
    {
        $hooks = ProjectX::getProjectConfig()->getCommandHooks();
        if (empty($hooks)) {
            return [];
        }
        $info = $this->getCommandInfo($method);
        list($command, $action) = explode(':', $info->getName());

        if (!isset($hooks[$command][$action][$event_type])) {
            return [];
        }

        return $hooks[$command][$action][$event_type];
    }