Pionia Core

EnvResolver
in package
Uses PathsTrait

Table of Contents

Properties

$dotenv  : Dotenv
$env  : Arrayable
Resolved environment variables
$path  : mixed|string

Methods

__construct()  : mixed
appRoot()  : string
The root folder of the application.
envPath()  : string
getEnv()  : Arrayable
Get the environment variables
getEnvFilePath()  : string
Get the environment file path
getEnvKeys()  : mixed
loadEnv()  : void
Load the environment variables
mediaPath()  : string
The path to the resources directory.
phpPath()  : string
phpVersion()  : string
publicPath()  : string
The directory where the frontend assets are stored.
resolveDatabaseConfigs()  : void

Properties

Methods

__construct()

public __construct([string|null $path = 'environment' ]) : mixed
Parameters
$path : string|null = 'environment'

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
string

envPath()

public envPath([string|null $path = null ]) : string
Parameters
$path : string|null = null
Return values
string

getEnvFilePath()

Get the environment file path

public getEnvFilePath() : string
Return values
string

loadEnv()

Load the environment variables

public loadEnv([string|null $src = '.env' ]) : void
Parameters
$src : string|null = '.env'

mediaPath()

The path to the resources directory.

public mediaPath() : string
Return values
string

phpPath()

public phpPath() : string
Return values
string

phpVersion()

public phpVersion() : string
Return values
string

publicPath()

The directory where the frontend assets are stored.

public publicPath([ $path = null ]) : string
Parameters
$path : = null
Return values
string

resolveDatabaseConfigs()

public resolveDatabaseConfigs(Filesystem $fs[, string|null $fileName = 'database.ini' ]) : void
Parameters
$fs : Filesystem
$fileName : string|null = 'database.ini'

        
On this page

Search results