Exemplo 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);
 }
Exemplo n.º 2
0
 public function onFile(FileEvent $event)
 {
     $this->output->writeln(sprintf('  <info>+ DEBUG: File (%s)</info>', $event->getFile()));
 }
Exemplo n.º 3
0
 public function onFile(FileEvent $event)
 {
     $this->writeln(sprintf('  + DEBUG: File (%s)', $event->getFile()->getPathname()));
 }