Skip to content
Browse files

Fix multilevel sub namespace bug in GenerateControllerCommand.php

  • Loading branch information...
1 parent df358cf commit fa8a887705aa207755db4ac0619230b42f15840c @yberkholz yberkholz committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 Command/GenerateControllerCommand.php
View
2 Command/GenerateControllerCommand.php
@@ -41,7 +41,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
}
$class = sprintf('%sController', str_replace('/', '\\', $controller));
- $subns = dirname(str_replace('\\', '/', $class));
+ $subns = str_replace('/', '\\', dirname(str_replace('\\', '/', $class)));
$namespace = sprintf('%s\Controller%s',
$bundle->getNamespace(), '.' !== $subns ? '\\'.$subns : ''
);

0 comments on commit fa8a887

Please sign in to comment.
Something went wrong with that request. Please try again.