public function searchNewBundles() { $this->output->writeln(sprintf('[%s] Trying to find bundle candidates', date('d-m-y H:i:s'))); $bundles = array(); foreach ($this->finder->find() as $fullName) { list($ownerName, $bundleName) = explode('/', $fullName); // We have it in DB already, skip it if ($this->bundleManager->findBundleBy(array('ownerName' => $ownerName, 'name' => $bundleName))) { continue; } $bundles[] = $fullName; } $this->output->writeln(sprintf('[%s] Found <comment>%d</comment> bundle candidates', date('d-m-y H:i:s'), count($bundles))); return $bundles; }