Skip to content

Commit bd8cd8b

Browse files
committed
Fix #186
1 parent 9b23898 commit bd8cd8b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Commands/Framework/CreateRoutesCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class CreateRoutesCommand extends Command
2727
{--routes-prefix=default-form : Prefix of the route group.}
2828
{--controller-directory= : The directory where the controller is under.}
2929
{--without-route-clause : Create the routes without where clause for the id.}
30-
{--routes-type= : The type of the route to create "api", "api-docs" or web.}
30+
{--routes-type= : The type of the route to create. (i.e., "api", "api-docs" or "web".)}
3131
{--api-version= : The api version to prefix your resurces with.}
3232
{--template-name= : The template name to use when generating the code.}';
3333

@@ -62,11 +62,11 @@ public function handle()
6262
}
6363

6464
$stub = $this->getRoutesStub($input->type);
65-
$controllnerName = $this->getControllerName($input->controllerName, $input->controllerDirectory);
66-
$controllerNamespace = $this->getControllersNamespace($controllnerName, $input->controllerDirectory);
65+
//$controllnerName = $this->getControllerName($input->controllerName, $input->controllerDirectory);
66+
$controllerNamespace = $this->getControllersNamespace($input->controllerName, $input->controllerDirectory);
6767
$useControllerLine = $this->getUseClassCommand($controllerNamespace);
6868
$this->replaceModelName($stub, $input->modelName)
69-
->replaceControllerName($stub, $controllnerName)
69+
->replaceControllerName($stub, $input->controllerName)
7070
->replaceRouteNames($stub, $this->getModelName($input->modelName), $namePrefix)
7171
->processRoutesGroup($stub, $input)
7272
->replaceRouteIdClause($stub, $this->getRouteIdClause($input->withoutRouteClause))
@@ -89,7 +89,7 @@ protected function getControllersNamespace($controllnerName, $controllerDirector
8989
{
9090
$controllerPath = Config::getControllersPath($controllerDirectory);
9191

92-
$path = Helpers::getAppNamespace($controllerDirectory, $controllerPath, $controllnerName);
92+
$path = Helpers::getAppNamespace($controllerPath, $controllnerName);
9393

9494
return Helpers::fixNamespace($path);
9595
}

0 commit comments

Comments
 (0)