From 24078d9f95c98e5a4f8c8f02bbe07eebb887142d Mon Sep 17 00:00:00 2001 From: "Andrey F. Mindubaev" Date: Sat, 30 Jun 2018 08:24:35 +0000 Subject: [PATCH] Put KERNEL_CLASS to environment if it was not there yet (#184) * Put KERNEL_CLASS to environment if it was not there yet * Update CHANGELOG.md --- CHANGELOG.md | 17 +++++++++++++++-- bootstrap/kernel_bootstrap.php | 1 + 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69d62d3..1c29cdb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,21 @@ Changelog ========= -2.1.0 (unreleased) ------------------- +2.1.3 +----- + * **2018-06-30**: Use KERNEL_DIR for backward compatibility only + * **2018-06-29**: Setting KERNEL_CLASS from phpunit.xml.dist during bootstrapping console command + +2.1.2 +----- + * **2018-06-29**: Read KERNEL_DIR and KERNEL_CLASS from phpunit.xml.dist for console commands + +2.1.1 +----- + * **2018-06-23**: Passing command line as array to Process for newer Symfony versions only + +2.1.0 +----- * **2017-01-18**: Introduce a `TestCompilePass` to make services public, which are needed in i.e. a WebTest. diff --git a/bootstrap/kernel_bootstrap.php b/bootstrap/kernel_bootstrap.php index 5506341..eeebc05 100644 --- a/bootstrap/kernel_bootstrap.php +++ b/bootstrap/kernel_bootstrap.php @@ -29,6 +29,7 @@ $envClass = $xml->xpath("//php/env[@name='KERNEL_CLASS']"); if (count($envClass)) { $kernelClass = (string) $envClass[0]['value']; + putenv(sprintf('KERNEL_CLASS=%s', $kernelClass)); } else { $envDir = $xml->xpath("//php/server[@name='KERNEL_DIR']"); if (!count($envDir)) {