Skip to content

DevToolsPathResolver

github-actions edited this page Apr 23, 2026 · 1 revision

Resolves canonical paths for the DevTools package itself.


  • Full name: \FastForward\DevTools\Path\DevToolsPathResolver
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Constants

Constant Visibility Type Value
BINARY public string 'bin/dev-tools'
RESOURCES public string 'resources'

Methods

getPackagePath

Returns the DevTools package directory or a path under it.

public static getPackagePath(string $path = ''): string
  • This method is static. Parameters:
Parameter Type Description
$path string the optional relative segment to append under the package directory

getBinaryPath

Returns the packaged DevTools binary path.

public static getBinaryPath(): string
  • This method is static.

getResourcesPath

Returns the packaged resources directory or a path under it.

public static getResourcesPath(string $path = ''): string
  • This method is static. Parameters:
Parameter Type Description
$path string the optional relative segment to append under resources

isInstalledAsDependency

Detects whether the provided path belongs to an installed vendor copy of DevTools.

public static isInstalledAsDependency(string $packagePath = ''): bool
  • This method is static. Parameters:
Parameter Type Description
$packagePath string an optional path within the package; defaults to the package root

isRepositoryCheckout

Detects whether the provided path belongs to the DevTools repository checkout itself.

public static isRepositoryCheckout(string $packagePath = ''): bool
  • This method is static. Parameters:
Parameter Type Description
$packagePath string an optional path within the package; defaults to the package root

Clone this wiki locally