Commit 4629cbb1 authored by Jon Pugh's avatar Jon Pugh

Use static syntax to get Icon.

parent ade2206a
......@@ -4,6 +4,7 @@ namespace Aegir\Provision\Command;
use Aegir\Provision\Application;
use Aegir\Provision\Command;
use Aegir\Provision\Console\ProvisionStyle;
use Aegir\Provision\Context;
use Aegir\Provision\Context\PlatformContext;
use Aegir\Provision\Context\ServerContext;
......@@ -190,7 +191,7 @@ class SaveCommand extends Command
$this->context = new $class($input->getArgument('context_name'), $this->getProvision(), $options);
}
else {
$icon = $this->getProvision()->io()::ICON_EDIT;
$icon = ProvisionStyle::ICON_EDIT;
$this->getProvision()->io()->block(
" {$icon} Editing context {$this->context->name} ",
NULL,
......
......@@ -3,6 +3,7 @@
namespace Aegir\Provision\Command;
use Aegir\Provision\Command;
use Aegir\Provision\Console\ProvisionStyle;
use Aegir\Provision\Context;
use Aegir\Provision\Context\PlatformContext;
use Aegir\Provision\Context\ServerContext;
......@@ -213,7 +214,7 @@ class ServicesCommand extends Command
}
if ($this->context->hasService($service)) {
$icon = $this->getProvision()->io()::ICON_EDIT;
$icon = ProvisionStyle::ICON_EDIT;
$this->getProvision()->io()->block(
" {$icon} Editing service {} provded by {$this->context->name} ",
NULL,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment