Skip to content

Commit

Permalink
minor #20103 [TwigBundle] Fix CacheWarmingTest are order dependent (t…
Browse files Browse the repository at this point in the history
…ucksaun)

This PR was merged into the 2.7 branch.

Discussion
----------

[TwigBundle] Fix CacheWarmingTest are order dependent

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Fix issue reported in #20065

Commits
-------

fcd6ec2 [TwigBundle] Fix CacheWarmingTest are order dependent
  • Loading branch information
fabpot committed Sep 30, 2016
2 parents 35091b1 + fcd6ec2 commit d2c050e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function __construct($withTemplating)
{
$this->withTemplating = $withTemplating;

parent::__construct('dev', true);
parent::__construct(($withTemplating ? 'with' : 'without').'_templating', true);
}

public function getName()
Expand Down Expand Up @@ -106,7 +106,7 @@ public function registerContainerConfiguration(LoaderInterface $loader)

public function getCacheDir()
{
return sys_get_temp_dir().'/'.Kernel::VERSION.'/CacheWarmingKernel/cache';
return sys_get_temp_dir().'/'.Kernel::VERSION.'/CacheWarmingKernel/cache/'.$this->environment;
}

public function getLogDir()
Expand Down

0 comments on commit d2c050e

Please sign in to comment.