class Normalizer implements NormalizerInterface (View source)

Class Normalizer Normalize paths and domains in a standard way

Methods

string
getDomain($url)

No description

string
normalizePath(string $path)

Trim trailing slash, ensure there's a leading slash

Details

string getDomain($url)

No description

Parameters

$url

Return Value

string

string normalizePath(string $path)

Trim trailing slash, ensure there's a leading slash

Parameters

string $path

Return Value

string