| Conditions | 3 |
| Paths | 3 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 65 | private function find(BundleInterface $bundle) |
||
| 66 | { |
||
| 67 | $yamls = array(); |
||
| 68 | |||
| 69 | if (!is_dir($bundle->getPath().'/Resources/config')) { |
||
| 70 | return $yamls; |
||
| 71 | } |
||
| 72 | |||
| 73 | $finder = new Finder(); |
||
| 74 | $finder->files() |
||
| 75 | ->name('*-generator.yml') |
||
| 76 | ->in($bundle->getPath().'/Resources/config'); |
||
| 77 | |||
| 78 | foreach ($finder as $file) { |
||
| 79 | $yamls[$file->getRealPath()] = $file->getRealPath(); |
||
| 80 | } |
||
| 81 | |||
| 82 | return $yamls; |
||
| 83 | } |
||
| 84 | } |
||
| 85 |