Core/Loader/FilesystemRecursive.php 1 location
|
@@ 17-27 (lines=11) @@
|
| 14 |
|
protected function getDefinitions(array $paths = array(), $returnFilename = false) |
| 15 |
|
{ |
| 16 |
|
// if no paths defined, we look in all bundles |
| 17 |
|
if (empty($paths)) { |
| 18 |
|
$paths = array(); |
| 19 |
|
/** @var $bundle \Symfony\Component\HttpKernel\Bundle\BundleInterface */ |
| 20 |
|
foreach($this->kernel->getBundles() as $bundle) |
| 21 |
|
{ |
| 22 |
|
$path = $bundle->getPath() . "/" . $this->versionDirectory; |
| 23 |
|
if (is_dir($path)) { |
| 24 |
|
$paths[] = $path; |
| 25 |
|
} |
| 26 |
|
} |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
$definitions = array(); |
| 30 |
|
foreach($paths as $path) { |
Core/Loader/Filesystem.php 1 location
|
@@ 65-75 (lines=11) @@
|
| 62 |
|
protected function getDefinitions(array $paths = array(), $returnFilename = false) |
| 63 |
|
{ |
| 64 |
|
// if no paths defined, we look in all bundles |
| 65 |
|
if (empty($paths)) { |
| 66 |
|
$paths = array(); |
| 67 |
|
/** @var $bundle \Symfony\Component\HttpKernel\Bundle\BundleInterface */ |
| 68 |
|
foreach ($this->kernel->getBundles() as $bundle) |
| 69 |
|
{ |
| 70 |
|
$path = $bundle->getPath() . "/" . $this->versionDirectory; |
| 71 |
|
if (is_dir($path)) { |
| 72 |
|
$paths[] = $path; |
| 73 |
|
} |
| 74 |
|
} |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
$definitions = array(); |
| 78 |
|
foreach ($paths as $path) { |