Example #1
0
 /**
  * @param Indexer                    $indexer
  * @param InvocationLocatorInterface $invocationLocator
  * @param ClassLocatorInterface      $classLocator
  */
 public function perform(Indexer $indexer, InvocationLocatorInterface $invocationLocator, ClassLocatorInterface $classLocator)
 {
     if ($invocationLocator instanceof LoggerAwareInterface) {
         //Way too much verbosity
         $invocationLocator->setLogger(new NullLogger());
     }
     if ($classLocator instanceof LoggerAwareInterface) {
         //Way too much verbosity
         $classLocator->setLogger(new NullLogger());
     }
     $this->writeln("<info>Scanning translate function usages...</info>");
     $indexer->indexInvocations($invocationLocator);
     $this->writeln("<info>Scanning Translatable classes...</info>");
     $indexer->indexClasses($classLocator);
 }