protected function prepareMethodName()
    {
        if (PHP_SAPI === 'cli') {
            $method = 'cli';
        } else {
            /** @var Request $request */
            $request = $this->getContainer()->get('request');
            $method = $request->getMethod();
        }

        return ucfirst(strtolower($method)) . 'Method';
    }