Skip to content

Commit

Permalink
Forgot generator doesn't offer method. Do it manually.
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyWay committed Mar 7, 2014
1 parent 7898092 commit 7c576bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Way/Generators/Commands/ScaffoldGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
use Config;

class ScaffoldGeneratorCommand extends ResourceGeneratorCommand {

Expand Down Expand Up @@ -33,7 +34,7 @@ protected function callModel($resource)
{
$this->call('generate:model', [
'modelName' => $modelName,
'--templatePath' => $this->getPathByOptionOrConfig('templatePath', 'scaffold_model_template_path')
'--templatePath' => Config::get("generators::config.scaffold_model_template_path")
]);
}
}
Expand All @@ -51,7 +52,7 @@ protected function callController($resource)
{
$this->call('generate:controller', [
'controllerName' => $controllerName,
'--templatePath' => $this->getPathByOptionOrConfig('templatePath', 'scaffold_controller_template_path')
'--templatePath' => Config::get("generators::config.scaffold_controller_template_path")
]);
}
}
Expand Down

0 comments on commit 7c576bc

Please sign in to comment.