|
@@ 136-146 (lines=11) @@
|
| 133 |
|
$this->generateFile($path, $stub, $namespace); |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
public function generateRepositoriesEloquent() |
| 137 |
|
{ |
| 138 |
|
$stub = $this->stubs['repositories.eloquent']; |
| 139 |
|
$stub = $this->getStub($stub); |
| 140 |
|
$generator = new RepositoryEloquentGenerator(['name' => 'Base']); |
| 141 |
|
$namespace = $generator->getNamespace(); |
| 142 |
|
$path = $generator->getBasePath().'/'.$generator->getConfigGeneratorClassPath($generator->getPathConfigNode(), |
| 143 |
|
true).'/BaseRepository.php'; |
| 144 |
|
|
| 145 |
|
$this->generateFile($path, $stub, $namespace); |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
public function generateRepositoriesInterfaces() |
| 149 |
|
{ |
|
@@ 148-158 (lines=11) @@
|
| 145 |
|
$this->generateFile($path, $stub, $namespace); |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
public function generateRepositoriesInterfaces() |
| 149 |
|
{ |
| 150 |
|
$stub = $this->stubs['repositories.interfaces']; |
| 151 |
|
$stub = $this->getStub($stub); |
| 152 |
|
$generator = new RepositoryInterfaceGenerator(['name' => 'Base']); |
| 153 |
|
$namespace = $generator->getNamespace(); |
| 154 |
|
$path = $generator->getBasePath().'/'.$generator->getConfigGeneratorClassPath($generator->getPathConfigNode(), |
| 155 |
|
true).'/BaseRepositoryInterface.php'; |
| 156 |
|
|
| 157 |
|
$this->generateFile($path, $stub, $namespace); |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
public function generateTransformer() |
| 161 |
|
{ |