Documentation

ValidateEnvPlaceholdersPass
in package
implements CompilerPassInterface

Validates environment variable placeholders used in extension configuration with dummy values.

Tags
author

Roland Franssen franssen.roland@gmail.com

Table of Contents

Interfaces

CompilerPassInterface
Interface that must be implemented by compilation passes.

Constants

TYPE_FIXTURES  = ['array' => [], 'bool' => false, 'float' => 0.0, 'int' => 0, 'string' => '']

Properties

$extensionConfig  : array<string|int, mixed>

Methods

process()  : void
You can modify the container here before it is dumped to PHP code.
getParameterDefaultAndDefaultType()  : array{0: string, 1: string}
getPlaceholderValues()  : array<string, mixed>

Constants

TYPE_FIXTURES

private mixed TYPE_FIXTURES = ['array' => [], 'bool' => false, 'float' => 0.0, 'int' => 0, 'string' => '']

Properties

Methods

getParameterDefaultAndDefaultType()

private getParameterDefaultAndDefaultType(string $name, ParameterBag $defaultBag) : array{0: string, 1: string}
Parameters
$name : string
$defaultBag : ParameterBag
Return values
array{0: string, 1: string}

getPlaceholderValues()

private getPlaceholderValues(string $env, ParameterBag $defaultBag, array<string, array<int, string>> $envTypes) : array<string, mixed>
Parameters
$env : string
$defaultBag : ParameterBag
$envTypes : array<string, array<int, string>>
Return values
array<string, mixed>

        
On this page

Search results