Esempio n. 1
0
 /**
  * @param $output
  * @param string $files
  * @param string $headerKey
  * @param string $pathKey
  * @param string $path+
  */
 private function showFiles($output, $files, $headerKey, $pathKey, $path)
 {
     if (!$files) {
         return;
     }
     $this->showMessage($output, $this->translator->trans($headerKey));
     $output->writeln(sprintf('<info>%s:</info> <comment>%s</comment>', $this->translator->trans($pathKey), $path));
     $index = 1;
     foreach ($files as $file) {
         $this->showFile($output, $file, $index);
         ++$index;
     }
 }
Esempio n. 2
0
 /**
  * @param $key string
  *
  * @return string
  */
 public function trans($key)
 {
     return $this->translator->trans($key);
 }