eloquent/pathogen API
Class

Eloquent\Pathogen\Resolver\FixedBasePathResolver

class FixedBasePathResolver implements PathResolverInterface

A path resolver that wraps another path resolver with a fixed base path.

Methods

__construct(AbsolutePathInterface $basePath, BasePathResolverInterface $resolver = null)

Construct a new fixed base path resolver.

basePath()

Get the base path used by this resolver.

resolver()

Get the base path resolver used internally by this resolver.

AbsolutePathInterface resolve(PathInterface $path)

Resolve a path against the base path.

Details

at line 28
public __construct(AbsolutePathInterface $basePath, BasePathResolverInterface $resolver = null)

Construct a new fixed base path resolver.

Parameters

AbsolutePathInterface $basePath The base path.
BasePathResolverInterface $resolver The base path resolver to use.

at line 45
public basePath()

Get the base path used by this resolver.

at line 55
public resolver()

Get the base path resolver used internally by this resolver.

at line 67
public AbsolutePathInterface resolve(PathInterface $path)

Resolve a path against the base path.

Parameters

PathInterface $path The path to resolve.

Return Value

AbsolutePathInterface The resolved path.