eloquent/pathogen API
Class

Eloquent\Pathogen\Resolver\BasePathResolver

class BasePathResolver implements BasePathResolverInterface

A path resolver that resolves against base paths.

Methods

static BasePathResolverInterface instance()

Get a static instance of this base path resolver.

AbsolutePathInterface resolve(AbsolutePathInterface $basePath, PathInterface $path)

Resolve a path against a given base path.

Details

at line 27
static public BasePathResolverInterface instance()

Get a static instance of this base path resolver.

Return Value

BasePathResolverInterface The static base path resolver.

at line 44
public AbsolutePathInterface resolve(AbsolutePathInterface $basePath, PathInterface $path)

Resolve a path against a given base path.

Parameters

AbsolutePathInterface $basePath The base path.
PathInterface $path The path to resolve.

Return Value

AbsolutePathInterface The resolved path.