eloquent/pathogen API
Class

Eloquent\Pathogen\Unix\Normalizer\UnixPathNormalizer

class UnixPathNormalizer extends PathNormalizer

A path normalizer suitable for normalizing Unix paths.

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.

from PathNormalizer
PathInterface normalize(PathInterface $path)

Normalize the supplied path to its most canonical form.

from PathNormalizer

Details

at line 29
static public PathNormalizerInterface instance()

Get a static instance of this path normalizer.

Return Value

PathNormalizerInterface The static path normalizer.

at line 43
public __construct(PathFactoryInterface $factory = null)

Construct a new path normalizer.

Parameters

PathFactoryInterface $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.

in PathNormalizer at line 71
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.