src/Factory/Controller/LazyControllerFactory.php
private function getClassName($requestedName)
    {
        $exp = explode('/', $requestedName);

        $className = array_shift($exp).'\\Controller\\'.implode('\\', $exp).'Controller';
        if (!class_exists($className)) {
            throw new ServiceNotCreatedException(
                sprintf(
                    'Can\'t find correct controller class for "%s"',
                    $requestedName
                )
            );
        }

        return $className;
    }
private function getClassName($requestedName)
    {
        $exp = explode('/', $requestedName);

        $className = array_shift($exp).'\\Controller\\'.implode('\\', $exp).'Controller';
        if (!class_exists($className)) {
            throw new ServiceNotCreatedException(
                sprintf(
                    'Can\'t find correct controller class for "%s"',
                    $requestedName
                )
            );
        }

        return $className;
    }
Generate class name

@param string $requestedName
@return string