From e7b5cd2dd3f81128f79b008e3346d146f22dc0a8 Mon Sep 17 00:00:00 2001 From: ek9 Date: Mon, 27 Mar 2017 04:48:58 +0200 Subject: [PATCH] PhpSpecRunExtension: fix extension configuration - fixes #41 --- src/Extension/PhpSpecRunExtension/src/PhpSpecRunExtension.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Extension/PhpSpecRunExtension/src/PhpSpecRunExtension.php b/src/Extension/PhpSpecRunExtension/src/PhpSpecRunExtension.php index a3771f1..2d80408 100644 --- a/src/Extension/PhpSpecRunExtension/src/PhpSpecRunExtension.php +++ b/src/Extension/PhpSpecRunExtension/src/PhpSpecRunExtension.php @@ -20,9 +20,8 @@ class PhpSpecRunExtension implements Extension */ public function load(ServiceContainer $container, array $params) { - $container->define('rmiller.run_runner', function ($c) { + $container->define('rmiller.run_runner', function ($c) use ($params) { - $params = $c->getParam('rerunner', []); $phpspecPath = isset($params['path']) ? $params['path'] : 'bin/phpspec'; $phpspecConfig = isset($params['config']) ? $params['config'] : null;