예제 #1
0
파일: LocalFinder.php 프로젝트: eva/eva
 /**
  * @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;
 }
예제 #2
0
파일: Plug.php 프로젝트: eva/eva
 /**
  * {@inheritdoc}
  */
 public function getName()
 {
     return $this->dependency->getDataReader()->getName();
 }