phasync
Swerve / ini

Method

Swerve::ini

php.ini settings a package needs in every swerve process. Call it from a file listed in your package's composer.json files: Composer loads it after swerve's own, as the master starts. swerve applies the settings with its startup restart, over its own settings; an explicit -d on the command line still wins.

Description#

public static Swerve::ini(
    array $settings
): void

Calls after startup change nothing, so the file may run again: an application that includes Composer's autoloader in every request includes it again.

Parameters#

$settings array

Examples#

Example 1
Swerve::ini(['memory_limit' => '512M']);