We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 625a3c8 commit 39dbdc3Copy full SHA for 39dbdc3
src/Generators/FullRoutePath.php
@@ -25,6 +25,12 @@ class FullRoutePath extends GeneratorAbstract
25
{
26
public function generateClassName()
27
28
+ $path = $this->getRoute()->getPath();
29
+
30
+ if ('/' === $path) {
31
+ return null;
32
+ }
33
34
// Remove route parameters. product_id is removed here: `controller/product/{product_id}`
35
$className = preg_replace("/\{([^}]+)\}/", '', $this->getRoute()->getPath());
36
0 commit comments