function it_write_bundles_names($event, Event $event2, Bundle $bundle2, $output)
 {
     $event2->getBundle()->willReturn($bundle2);
     $output->writeln(Argument::type('string'))->shouldBeCalledTimes(2);
     $this->preLoad($event);
     $this->preLoad($event2);
 }
 /**
  * {@inheritdoc}
  */
 public function preLoad(Event $event)
 {
     $class = get_class($event->getBundle());
     if (in_array($class, $this->cache)) {
         return;
     }
     $this->output->writeln(sprintf('<fg=black;bg=green>#Bundle > %s </fg=black;bg=green>', $class));
     $this->cache[] = $class;
 }
 /**
  * {@inheritdoc}
  */
 public function postLoad(Event $event)
 {
     $entities = [];
     foreach ($event->getObjects() as $object) {
         $class = get_class($object);
         if (false === array_key_exists($class, $entities)) {
             $entities[$class] = [];
         }
         $entities[$class][] = $object;
     }
     foreach ($entities as $class => $instances) {
         $this->output->writeln(sprintf('        <comment>%s</comment>: %s', $class, count($instances)));
     }
 }
 /**
  * {@inheritdoc}
  */
 public function preLoad(Event $event)
 {
     $this->output->writeln(sprintf('    %s', $event->getFile()));
 }