eloquent/pathogen API
Class

Eloquent\Pathogen\Windows\Normalizer\WindowsPathNormalizer

class WindowsPathNormalizer extends PathNormalizer

A path normalizer suitable for normalizing Windows paths.

Methods

static PathNormalizerInterface instance()

Get a static instance of this path normalizer.

__construct(WindowsPathFactoryInterface $factory = null)

Construct a new Windows path normalizer.

PathFactoryInterface factory()

Get the path factory used by this normalizer.

from PathNormalizer
PathInterface normalize(PathInterface $path)

Normalize the supplied path to its most canonical form.

Details

at line 32
static public PathNormalizerInterface instance()

Get a static instance of this path normalizer.

Return Value

PathNormalizerInterface The static path normalizer.

at line 46
public __construct(WindowsPathFactoryInterface $factory = null)

Construct a new Windows path normalizer.

Parameters

WindowsPathFactoryInterface $factory The path factory to use.

in PathNormalizer at line 59
public PathFactoryInterface factory()

Get the path factory used by this normalizer.

Return Value

PathFactoryInterface The path factory.

at line 62
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.