Documentation

PhpConfig
in package

Tags
author

John Stevenson john-stevenson@blueyonder.co.uk

phpstan-type

restartData array{tmpIni: string, scannedInis: bool, scanDir: false|string, phprc: false|string, inis: string[], skipped: string}

Table of Contents

Methods

useOriginal()  : array<string|int, string>
Use the original PHP configuration
usePersistent()  : array<string|int, string>
Use environment variables to persist settings
useStandard()  : array<string|int, string>
Use standard restart settings
getDataAndReset()  : array<string|int, mixed>|null
Returns restart data if available and resets the environment
updateEnv()  : void
Updates a restart settings value in the environment

Methods

useOriginal()

Use the original PHP configuration

public useOriginal() : array<string|int, string>
Return values
array<string|int, string>

Empty array of PHP cli options

usePersistent()

Use environment variables to persist settings

public usePersistent() : array<string|int, string>
Return values
array<string|int, string>

Empty array of PHP cli options

useStandard()

Use standard restart settings

public useStandard() : array<string|int, string>
Return values
array<string|int, string>

PHP cli options

getDataAndReset()

Returns restart data if available and resets the environment

private getDataAndReset() : array<string|int, mixed>|null
Tags
phpstan-return

restartData|null

Return values
array<string|int, mixed>|null

updateEnv()

Updates a restart settings value in the environment

private updateEnv(string $name, string|false $value) : void
Parameters
$name : string
$value : string|false

        
On this page

Search results