Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console / src / Command / Config / PrintConfigValidationTrait.php
index 16a54f92f7520ca5c50a49e64619640a868b6975..afd7daf8d6f3bf37539a8ed1dcc7b474ebb19b38 100644 (file)
@@ -7,19 +7,17 @@
 
 namespace Drupal\Console\Command\Config;
 
-use Drupal\Console\Core\Style\DrupalStyle;
-
 trait PrintConfigValidationTrait
 {
-    protected function printResults($valid, DrupalStyle $io)
+    protected function printResults($valid)
     {
         if ($valid === true) {
-            $io->info($this->trans('commands.config.validate.messages.success'));
+            $this->getIo()->info($this->trans('commands.config.validate.messages.success'));
             return 0;
         }
 
         foreach ($valid as $key => $error) {
-            $io->warning($key . ': ' . $error);
+            $this->getIo()->warning($key . ': ' . $error);
         }
         return 1;
     }