-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
| Constant | Visibility | Type | Value |
|---|---|---|---|
BINARY |
public | string | 'bin/dev-tools' |
RESOURCES |
public | string | 'resources' |
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 |
Returns the packaged DevTools binary path.
public static getBinaryPath(): string- This method is static.
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 |
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 |
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 |