Skip to content

Commit 24078d9

Browse files
covex-nnElectricMaxxx
authored andcommitted
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
1 parent 63f94e1 commit 24078d9

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

CHANGELOG.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
Changelog
22
=========
33

4-
2.1.0 (unreleased)
5-
------------------
4+
2.1.3
5+
-----
6+
* **2018-06-30**: Use KERNEL_DIR for backward compatibility only
7+
* **2018-06-29**: Setting KERNEL_CLASS from phpunit.xml.dist during bootstrapping console command
8+
9+
2.1.2
10+
-----
11+
* **2018-06-29**: Read KERNEL_DIR and KERNEL_CLASS from phpunit.xml.dist for console commands
12+
13+
2.1.1
14+
-----
15+
* **2018-06-23**: Passing command line as array to Process for newer Symfony versions only
16+
17+
2.1.0
18+
-----
619

720
* **2017-01-18**: Introduce a `TestCompilePass` to make services public, which are needed
821
in i.e. a WebTest.

bootstrap/kernel_bootstrap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
$envClass = $xml->xpath("//php/env[@name='KERNEL_CLASS']");
3030
if (count($envClass)) {
3131
$kernelClass = (string) $envClass[0]['value'];
32+
putenv(sprintf('KERNEL_CLASS=%s', $kernelClass));
3233
} else {
3334
$envDir = $xml->xpath("//php/server[@name='KERNEL_DIR']");
3435
if (!count($envDir)) {

0 commit comments

Comments
 (0)