Zippy API
Class

Alchemy\Zippy\Resource\TargetLocator

class TargetLocator

Methods

String locate(String $context, String|resource $resource)

Locates the target for a resource in a context

Details

at line 31
public String locate(String $context, String|resource $resource)

Locates the target for a resource in a context

For example, adding /path/to/file where the context (current working
directory) is /path/to will return `file` as target

Parameters

String $context
String|resource $resource

Return Value

String

Exceptions

TargetLocatorException In case the resource is invalid