PathsTrait
Table of Contents
Methods
- appRoot() : string
- The root folder of the application.
- envPath() : string
- getDirFor() : string|null
- Get the directory for a given alias
- mediaPath() : string
- The path to the resources directory.
- phpPath() : string
- phpVersion() : string
- publicPath() : string
- The directory where the frontend assets are stored.
Methods
appRoot()
The root folder of the application.
public
appRoot([string|null $path = null ][, int $levels = 3 ]) : string
Parameters
- $path : string|null = null
- $levels : int = 3
Return values
stringenvPath()
public
envPath([string|null $path = null ]) : string
Parameters
- $path : string|null = null
Return values
stringgetDirFor()
Get the directory for a given alias
public
getDirFor(string $aliasName) : string|null
Parameters
- $aliasName : string
Return values
string|nullmediaPath()
The path to the resources directory.
public
mediaPath() : string
Return values
stringphpPath()
public
phpPath() : string
Return values
stringphpVersion()
public
phpVersion() : string
Return values
stringpublicPath()
The directory where the frontend assets are stored.
public
publicPath([ $path = null ]) : string