| 1 | <?php |
||
| 15 | class GeneratorsFinder |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var KernelInterface |
||
| 19 | */ |
||
| 20 | private $kernel; |
||
| 21 | /** |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | private $yamls; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Constructor. |
||
| 28 | * |
||
| 29 | * @param KernelInterface $kernel A KernelInterface instance |
||
| 30 | */ |
||
| 31 | public function __construct(KernelInterface $kernel) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Find all the generator.yml in the bundle and in the kernel Resources folder. |
||
| 38 | * |
||
| 39 | * @return array An array of yaml files |
||
| 40 | */ |
||
| 41 | public function findAll() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Find templates in the given bundle. |
||
| 60 | * |
||
| 61 | * @param BundleInterface $bundle The bundle where to look for templates |
||
| 62 | * |
||
| 63 | * @return array of yaml paths |
||
| 64 | */ |
||
| 65 | private function find(BundleInterface $bundle) |
||
| 84 | } |
||
| 85 |