Method |
Description |
|
__construct ( GrumPHP $config, Filesystem $fileSystem, ExternalCommand $externalCommandLocator, string $defaultConfigPath ) |
|
|
getAbsolutePath ( $path ) : mixed |
|
|
getAsciiContent ( $resource ) : string |
Load an ascii image |
|
getAsciiPath ( ) : string |
Get the path with all ascii art |
|
getBinCommand ( $command, $forceUnix = false ) : string |
Search a command in the bin folder
Note: the command locator is not injected because it needs the relative bin path |
|
getBinDir ( ) : string |
Find the relative bin directory |
|
getDefaultConfigPath ( ) : string |
|
|
getGitDir ( ) : string |
Find the relative git directory |
|
getGitHookExecutionPath ( ) : string |
Gets the path from where the command needs to be executed in the GIT hook. |
|
getGitHookTemplatesDir ( ) : string |
The folder with all git hooks |
|
getGitHooksDir ( ) : string |
Returns the directory where the git hooks are installed. |
|
getGrumPHPPath ( ) : string |
Get the root path of the GrumPHP package: |
|
getName ( ) |
|
|
getPathWithTrailingSlash ( string $path ) : string |
|
|
getRelativePath ( $path ) : string |
|
|
getRelativeProjectPath ( string $path ) : string |
This method will return a relative path to a file of directory if it lives in the current project. |
|
getResourcesPath ( ) : string |
Get the folder which contains all resources |
|
getWorkingDir ( ) : string |
This is the directory in which the cli script is initialized. |
|