src/Graviton/GeneratorBundle/Definition/JsonDefinition.php 1 location
|
@@ 135-137 (lines=3) @@
|
132 |
|
// normalize namespace |
133 |
|
$namespace = str_replace('/', '\\', $namespace); |
134 |
|
|
135 |
|
if (substr($namespace, -1) == '\\') { |
136 |
|
$namespace = substr($namespace, 0, -1); |
137 |
|
} |
138 |
|
|
139 |
|
$this->namespace = $namespace; |
140 |
|
} |
src/Graviton/GeneratorBundle/Generator/BundleGenerator.php 1 location
|
@@ 40-42 (lines=3) @@
|
37 |
|
$dir .= '/' . strtr($namespace, '\\', '/'); |
38 |
|
|
39 |
|
// make sure we have no trailing \ in namespace |
40 |
|
if (substr($namespace, -1) == '\\') { |
41 |
|
$namespace = substr($namespace, 0, -1); |
42 |
|
} |
43 |
|
|
44 |
|
$basename = $this->getBundleBaseName($bundle); |
45 |
|
$parameters = array( |