Overview

Namespaces

  • Autarky
    • Config
      • Loaders
    • Console
    • Container
      • Exception
      • Factory
      • Proxy
    • Database
    • Errors
    • Events
    • Files
    • Http
    • Logging
    • Providers
    • Routing
      • Events
    • Testing
    • TwigTemplating
      • Extensions
    • Utils

Classes

  • LockingFilesystem
  • PathResolver

Exceptions

  • IOException
  • Overview
  • Namespace
  • Class

Class PathResolver

Class that resolves possible paths based on various factors.

Namespace: Autarky\Files
Located at Files/PathResolver.php
Methods summary
public
# __construct( string|array $pathOrPaths = [] )

Constructor

Constructor

Parameters

$pathOrPaths
public
# addPath( string $path )

Add a main path.

Add a main path.

Parameters

$path
public
# mount( string $location, string $path )

Mount a path onto a location.

Mount a path onto a location.

Parameters

$location
$path
public array
# resolve( string $path )

Resolve possible paths for a relative path.

Resolve possible paths for a relative path.

Parameters

$path

Returns

array
public string[]
# locate( string|string[] $basenameOrNames, string|string[] $extensionOrExtensions )

Based on a set of basenames (filename without extension) and a set of possible extensions, find the files that exist.

Based on a set of basenames (filename without extension) and a set of possible extensions, find the files that exist.

Parameters

$basenameOrNames
$extensionOrExtensions

Returns

string[]
Properties summary
protected string[] $paths

Main paths.

Main paths.

#
protected string[][] $mounts

External paths mounted onto locations on the main path.

External paths mounted onto locations on the main path.

#
Autarky Framework API documentation generated by ApiGen