src/Routes/RouterAbstract.php
public function getRelativeControllerNamespace($namespace)
    {
        $candidate = $namespace;
        foreach ($this->controllerNamespaces as $controllerNamespace) {
            if (strpos($namespace, $controllerNamespace) === 0) {
                $temp = ltrim(substr($namespace, strlen($controllerNamespace)), '\\');
                if (strlen($temp) < strlen($candidate)) {
                    $candidate = $temp;
                }
            }
        }
        return $candidate;
    }
public function getRelativeControllerNamespace($namespace)
    {
        $candidate = $namespace;
        foreach ($this->controllerNamespaces as $controllerNamespace) {
            if (strpos($namespace, $controllerNamespace) === 0) {
                $temp = ltrim(substr($namespace, strlen($controllerNamespace)), '\\');
                if (strlen($temp) < strlen($candidate)) {
                    $candidate = $temp;
                }
            }
        }
        return $candidate;
    }
Get controller namespace relative to $this::$controllerNamespaces
@param string $namespace
@return string
@see $controllerNamespaces