eloquent/pathogen API
Class

Eloquent\Pathogen\FileSystem\Normalizer\FileSystemPathNormalizer

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.

Return Value

PathNormalizerInterface The static path normalizer.

at line 45
public __construct(PathNormalizerInterface $unixNormalizer = null, PathNormalizerInterface $windowsNormalizer = null)

Construct a new file system path normalizer.

Parameters

PathNormalizerInterface $unixNormalizer The path normalizer to use for Unix paths.
PathNormalizerInterface $windowsNormalizer The path normalizer to use for Windows paths.

at line 65
public PathNormalizerInterface unixNormalizer()

Get the path normalizer used for Unix paths.

Return Value

PathNormalizerInterface The path normalizer used for Unix paths.

at line 75
public PathNormalizerInterface windowsNormalizer()

Get the path normalizer used for Windows paths.

Return Value

PathNormalizerInterface The path normalizer used for Windows paths.

at line 87
public PathInterface normalize(PathInterface $path)

Normalize the supplied path to its most canonical form.

Parameters

PathInterface $path The path to normalize.

Return Value

PathInterface The normalized path.