class PathNormalizer implements PathNormalizerInterface
A path normalizer suitable for generic, Unix-style path instances.
Methods
static PathNormalizerInterface |
instance()
Get a static instance of this path normalizer. |
|
__construct(PathFactoryInterface $factory = null)
Construct a new path normalizer. |
||
PathFactoryInterface |
factory()
Get the path factory used by this normalizer. |
|
PathInterface |
normalize(PathInterface $path)
Normalize the supplied path to its most canonical form. |
Details
at line 31
static public PathNormalizerInterface
instance()
Get a static instance of this path normalizer.
at line 45
public
__construct(PathFactoryInterface $factory = null)
Construct a new path normalizer.
at line 59
public PathFactoryInterface
factory()
Get the path factory used by this normalizer.
at line 71
public PathInterface
normalize(PathInterface $path)
Normalize the supplied path to its most canonical form.