From 9c56e685bcc76473dbb7a5ac052f37404f5811d9 Mon Sep 17 00:00:00 2001 From: mmoreram Date: Tue, 5 May 2015 16:15:06 +0200 Subject: [PATCH 1/2] Client is built before urls are created --- Command/GoCommand.php | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/Command/GoCommand.php b/Command/GoCommand.php index ebd3552..477d0d1 100644 --- a/Command/GoCommand.php +++ b/Command/GoCommand.php @@ -81,20 +81,30 @@ protected function executeVisithor( array $config, $format ) { - $urlChain = $this - ->urlGenerator - ->generate($config); - $renderer = $this ->rendererFactory ->create($format); - return $this + $this + ->executor + ->build(); + + $urlChain = $this + ->urlGenerator + ->generate($config); + + $result = $this ->executor ->execute( $urlChain, $renderer, $output ); + + $this + ->executor + ->destroy(); + + return $result; } } From 8bb5c1209e56c9a37d3c803901057d2ddde9d84e Mon Sep 17 00:00:00 2001 From: mmoreram Date: Tue, 5 May 2015 16:24:20 +0200 Subject: [PATCH 2/2] Updated visithor dependency --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ae408a6..1c92e61 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "symfony/security": "~2.3", "symfony/framework-bundle": "~2.3", - "visithor/visithor": "~0.1, >=0.1.3" + "visithor/visithor": "~0.1, >=0.1.4" }, "require-dev": { "symfony/security-bundle": "~2.3",