diff --git a/src/ProxyConfigurator.php b/src/ProxyConfigurator.php index 7a94b38..f4163cf 100644 --- a/src/ProxyConfigurator.php +++ b/src/ProxyConfigurator.php @@ -2,6 +2,7 @@ declare(strict_types=1); namespace Narrowspark\Automatic\Configurator; +use Composer\IO\IOInterface; use Narrowspark\Automatic\Common\Contract\Package as PackageContract; final class ProxyConfigurator extends AbstractClassConfigurator @@ -102,7 +103,7 @@ private function buildClassNamesContent(PackageContract $package, array $classes $content .= $spaces . '\'' . \str_replace('::class', '', $className) . '\' => ' . $class . ",\n"; - $this->write(\sprintf('Enabling [%s] as a %s proxy.', $class, $env)); + $this->io->write(\sprintf(' - Enabling [%s] as a %s proxy.', $class, $env), true, IOInterface::VERBOSE); } return $this->markData($package->getName(), $content, 16); diff --git a/src/ServiceProviderConfigurator.php b/src/ServiceProviderConfigurator.php index f1ff02c..ac76daa 100644 --- a/src/ServiceProviderConfigurator.php +++ b/src/ServiceProviderConfigurator.php @@ -2,6 +2,7 @@ declare(strict_types=1); namespace Narrowspark\Automatic\Configurator; +use Composer\IO\IOInterface; use Narrowspark\Automatic\Common\Contract\Package as PackageContract; final class ServiceProviderConfigurator extends AbstractClassConfigurator @@ -86,7 +87,7 @@ private function buildClassNamesContent(PackageContract $package, array $classes foreach ($classes as $class) { $content .= ' ' . $class . ",\n"; - $this->write(\sprintf('Enabling [%s] as a %s service provider.', $class, $type)); + $this->io->write(\sprintf(' - Enabling [%s] as a %s service provider.', $class, $type), true, IOInterface::VERBOSE); } return $this->markData($package->getName(), $content);