summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Pugh2017-11-28 18:08:09 (GMT)
committerJon Pugh2017-11-28 18:08:09 (GMT)
commitd1291a55b1196af889eb62d3d4f29f8f1372d9c9 (patch)
tree0f428887fb8a76561ec9b14cd4545df4aec942cd
parentac1f7645e12410f86285e1e1a4610c8835bd82c4 (diff)
Set Logger in Provision constructor.4.x-robo
-rw-r--r--src/Provision.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Provision.php b/src/Provision.php
index a6b3d2b..f026414 100644
--- a/src/Provision.php
+++ b/src/Provision.php
@@ -93,6 +93,7 @@ class Provision implements ConfigAwareInterface, ContainerAwareInterface, Logger
) {
$logger = new ConsoleLogger($output);
+ $this->setLogger($logger);
$this
->setConfig($config)
@@ -182,6 +183,7 @@ class Provision implements ConfigAwareInterface, ContainerAwareInterface, Logger
// in the container. "collectionBuilder" used for the actual command that
// was executed, and "builder" to be used with non-command classes.
$tasks = new ProvisionTasks();
+ $tasks->setLogger($this->logger);
$builder = new ProvisionCollectionBuilder($tasks);
$tasks->setBuilder($builder);
$container->add('tasks', $tasks);