Adamgoose\Routing\Annotations\Annotations\Controller::trimPath PHP Method

trimPath() protected method

Trim the path slashes for a given prefix and path.
protected trimPath ( string $prefix, string $path ) : string
$prefix string
$path string
return string
    protected function trimPath($prefix, $path)
    {
        return trim(trim($prefix, '/') . '/' . trim($path, '/'), '/');
    }