class FileSystemPathNormalizer implements PathNormalizerInterface
A path normalizer capable or normalizing any type of file system path.
Methods
static PathNormalizerInterface |
instance()
Get a static instance of this path normalizer. |
|
__construct(PathNormalizerInterface $unixNormalizer = null, PathNormalizerInterface $windowsNormalizer = null)
Construct a new file system path normalizer. |
||
PathNormalizerInterface |
unixNormalizer()
Get the path normalizer used for Unix paths. |
|
PathNormalizerInterface |
windowsNormalizer()
Get the path normalizer used for Windows paths. |
|
PathInterface |
normalize(PathInterface $path)
Normalize the supplied path to its most canonical form. |
Details
at line 30
static public PathNormalizerInterface
instance()
Get a static instance of this path normalizer.
at line 45
public
__construct(PathNormalizerInterface $unixNormalizer = null, PathNormalizerInterface $windowsNormalizer = null)
Construct a new file system path normalizer.
at line 65
public PathNormalizerInterface
unixNormalizer()
Get the path normalizer used for Unix paths.
at line 75
public PathNormalizerInterface
windowsNormalizer()
Get the path normalizer used for Windows paths.
at line 87
public PathInterface
normalize(PathInterface $path)
Normalize the supplied path to its most canonical form.