src/Commands/CommandCommand.php 1 location
|
@@ 64-73 (lines=10) @@
|
| 61 |
|
/** |
| 62 |
|
* @return mixed |
| 63 |
|
*/ |
| 64 |
|
protected function getTemplateContents() |
| 65 |
|
{ |
| 66 |
|
$module = $this->laravel['modules']->findOrFail($this->getModuleName()); |
| 67 |
|
|
| 68 |
|
return (new Stub('/command.stub', [ |
| 69 |
|
'COMMAND_NAME' => $this->getCommandName(), |
| 70 |
|
'NAMESPACE' => $this->getClassNamespace($module), |
| 71 |
|
'CLASS' => $this->getClass(), |
| 72 |
|
]))->render(); |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
/** |
| 76 |
|
* @return mixed |
src/Commands/SeedMakeCommand.php 1 location
|
@@ 65-75 (lines=11) @@
|
| 62 |
|
/** |
| 63 |
|
* @return mixed |
| 64 |
|
*/ |
| 65 |
|
protected function getTemplateContents() |
| 66 |
|
{ |
| 67 |
|
$module = $this->laravel['modules']->findOrFail($this->getModuleName()); |
| 68 |
|
|
| 69 |
|
return (new Stub('/seeder.stub', [ |
| 70 |
|
'NAME' => $this->getSeederName(), |
| 71 |
|
'MODULE' => $this->getModuleName(), |
| 72 |
|
'NAMESPACE' => $this->getClassNamespace($module), |
| 73 |
|
|
| 74 |
|
]))->render(); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
/** |
| 78 |
|
* @return mixed |
src/Commands/GenerateJobCommand.php 1 location
|
@@ 47-55 (lines=9) @@
|
| 44 |
|
* |
| 45 |
|
* @return string |
| 46 |
|
*/ |
| 47 |
|
protected function getTemplateContents() |
| 48 |
|
{ |
| 49 |
|
$module = $this->laravel['modules']->findOrFail($this->getModuleName()); |
| 50 |
|
|
| 51 |
|
return (new Stub('/job.stub', [ |
| 52 |
|
'NAMESPACE' => $this->getClassNamespace($module), |
| 53 |
|
'CLASS' => $this->getClass(), |
| 54 |
|
]))->render(); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
/** |
| 58 |
|
* Get the destination file path. |