Skip to content

Commit

Permalink
Put KERNEL_CLASS to environment if it was not there yet (#184)
Browse files Browse the repository at this point in the history
* Put KERNEL_CLASS to environment if it was not there yet

* Update CHANGELOG.md
  • Loading branch information
covex-nn authored and ElectricMaxxx committed Jun 30, 2018
1 parent 63f94e1 commit 24078d9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
17 changes: 15 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions bootstrap/kernel_bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 24078d9

Please sign in to comment.