Skip to content

Commit

Permalink
Adjusted names and added strict types
Browse files Browse the repository at this point in the history
  • Loading branch information
jamielsharief committed Aug 30, 2020
1 parent 189015f commit ae6b823
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
9 changes: 6 additions & 3 deletions templates/generator/plugin_controller.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<?php
<?php
declare(strict_types=1);

namespace %namespace%\Http\Controller;
use Origin\Http\Controller\Controller; // keep independent

class %class%ApplicationController extends Controller
use App\Http\Controller\Controller\ApplicationController as BaseController;

class ApplicationController extends BaseController
{
}
14 changes: 5 additions & 9 deletions templates/generator/plugin_model.tpl
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<?php
declare(strict_types=1);

namespace %namespace%\Model;

use Origin\Model\Model; // keep independent
use Origin\Model\Collection;
use Origin\Model\Entity;
use ArrayObject;
use App\Model\ApplicationModel as BaseModel;

class %class%ApplicationModel extends Model
class ApplicationModel extends BaseModel
{
/**
* This is called when the model is constructed.
*/
protected function initialize(array $config) : void
protected function initialize(array $config): void
{
parent::initialize($config);
}
Expand Down

0 comments on commit ae6b823

Please sign in to comment.