Skip to content

Commit

Permalink
PhpSpecRunExtension: fix extension configuration - fixes richardmille…
Browse files Browse the repository at this point in the history
  • Loading branch information
ek9 committed Mar 27, 2017
1 parent b505126 commit 18b9de5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Extension/PhpSpecRunExtension/PhpSpecRunExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 18b9de5

Please sign in to comment.