Exemplo n.º 1
0
 /**
  * @return ArrayCollection|PlugInterface[]
  */
 public function find()
 {
     $plugs = new ArrayCollection();
     $finder = new Finder();
     /** @var SplFileInfo[] $files */
     $files = $finder->files()->name('/^composer\\.json$/')->in($this->directory);
     foreach ($files as $file) {
         $dependency = new ComposerFile($file->getPath());
         $plug = $dependency->getDataReader()->getExtraPlugClass();
         $plug = new $plug($file->getPath(), $dependency);
         $plugs->add($plug);
     }
     return $plugs;
 }
Exemplo n.º 2
0
Arquivo: Plug.php Projeto: eva/eva
 /**
  * {@inheritdoc}
  */
 public function getName()
 {
     return $this->dependency->getDataReader()->getName();
 }