Skip to content

Commit

Permalink
Merge pull request #19 from KenoKokoro/stubs
Browse files Browse the repository at this point in the history
Fix stubs formatting. Use Laravel JSON controller by default
  • Loading branch information
KenoKokoro authored Nov 15, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 043e7d6 + 3a9bd40 commit 2c77260
Showing 4 changed files with 2 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/Console/Generators/BLL/StubBll.stub
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php


namespace [bll-namespace];


use [dal-interface-namespace]\[dal-interface-name];
use BaseTree\Resources\BaseResource;

4 changes: 1 addition & 3 deletions src/Console/Generators/Controller/StubController.stub
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<?php


namespace [controller-namespace];


use BaseTree\Controllers\RestfulJsonController;
use BaseTree\Controllers\Laravel\RestfulJsonController;
use [bll-namespace]\[bll-name];

class [controller-name] extends RestfulJsonController
2 changes: 0 additions & 2 deletions src/Console/Generators/DAL/StubDal.stub
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php


namespace [dal-namespace];


use [model-namespace]\[model-name];
use BaseTree\Eloquent\BaseEloquent;
use [dal-interface-namespace]\[dal-interface-name];
3 changes: 1 addition & 2 deletions src/Console/Generators/DAL/StubDalInterface.stub
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<?php


namespace [dal-interface-namespace];
use BaseTree\Eloquent\RepositoryInterface;

use BaseTree\Eloquent\RepositoryInterface;

interface [dal-interface-name] extends RepositoryInterface
{

0 comments on commit 2c77260

Please sign in to comment.