Skip to content

Commit

Permalink
Merge pull request #8 from Visithor/feature/changed-build-order
Browse files Browse the repository at this point in the history
Client is built before urls are created
  • Loading branch information
mmoreram committed May 5, 2015
2 parents e5f6663 + 8bb5c12 commit 2c367c5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 15 additions & 5 deletions Command/GoCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2c367c5

Please sign in to comment.