src/Graviton/GeneratorBundle/Command/GenerateDynamicBundleCommand.php 1 location
|
@@ 334-336 (lines=3) @@
|
| 331 |
|
|
| 332 |
|
foreach ($bundleFinder as $bundleDir) { |
| 333 |
|
$name = $bundleDir->getFilename(); |
| 334 |
|
if (substr($name, -6) == 'Bundle') { |
| 335 |
|
$name = substr($name, 0, -6); |
| 336 |
|
} |
| 337 |
|
$this->bundleBundleList[] = sprintf(self::BUNDLE_NAME_MASK, $name); |
| 338 |
|
} |
| 339 |
|
|
src/Graviton/GeneratorBundle/Generator/AbstractGenerator.php 1 location
|
@@ 52-54 (lines=3) @@
|
| 49 |
|
*/ |
| 50 |
|
public function getBundleBaseName($name) |
| 51 |
|
{ |
| 52 |
|
if ('bundle' === strtolower(substr($name, -6))) { |
| 53 |
|
$name = substr($name, 0, -6); |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
return $name; |
| 57 |
|
} |