Esempio n. 1
0
 public function onFile(FileEvent $event)
 {
     $pathname = $event->getFile()->getPathname();
     if (!preg_match('/\\.xml$/i', $pathname)) {
         return;
     }
     $entity = $this->unserializer->unserialize($pathname);
     $this->repository->add($entity, $pathname);
 }
Esempio n. 2
0
 public function onFile(FileEvent $event)
 {
     $this->output->writeln(sprintf('  <info>+ DEBUG: File (%s)</info>', $event->getFile()));
 }
Esempio n. 3
0
 public function onFile(FileEvent $event)
 {
     $this->writeln(sprintf('  + DEBUG: File (%s)', $event->getFile()->getPathname()));
 }