From 39e90011d91cb123ed2904ed80069c213c3f2629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Reuille?= Date: Fri, 18 Dec 2015 17:41:20 +0100 Subject: [PATCH 1/2] Fix : config almways parsed even if cache is set --- src/M6Web/Bundle/LogBridgeBundle/Matcher/Builder.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/M6Web/Bundle/LogBridgeBundle/Matcher/Builder.php b/src/M6Web/Bundle/LogBridgeBundle/Matcher/Builder.php index fd19722..8e70015 100644 --- a/src/M6Web/Bundle/LogBridgeBundle/Matcher/Builder.php +++ b/src/M6Web/Bundle/LogBridgeBundle/Matcher/Builder.php @@ -182,10 +182,11 @@ protected function buildMatcherCache() public function getMatcher() { if (!$this->matcher) { - $cacheCode = $this->buildMatcherCache(); + $matcherCache = new ConfigCache($this->getAbsoluteCachePath(), $this->isDebug()); if (!$matcherCache->isFresh()) { + $cacheCode = $this->buildMatcherCache(); $resources = []; foreach ($this->cacheResources as $resource) { From 8180c803c3fb5d5daa2097a924dea72c1e912c61 Mon Sep 17 00:00:00 2001 From: Olivier Mansour Date: Mon, 21 Dec 2015 20:46:53 +0100 Subject: [PATCH 2/2] suppression de xdebug --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index b780092..d812407 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ php: - 7 before_script: + - phpenv config-rm xdebug.ini - wget http://getcomposer.org/composer.phar - php composer.phar install --dev