Skip to content

Commit

Permalink
Prepare for framework 7.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Shevchuk authored and Anton Shevchuk committed Jul 20, 2017
1 parent 027c5ce commit b4be854
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/Generator/views/controllers/crud.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ return function () {
/**
* @var Controller $this
*/
$crud = new Crud();

$crud->setCrud(<?=$model?>\Crud::getInstance());
$crud = new Crud(<?=$model?>\Crud::getInstance());

$crud->get('system', 'crud/get');
$crud->post('system', 'crud/post');
Expand Down
4 changes: 1 addition & 3 deletions src/Generator/views/controllers/rest.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ return function () {
/**
* @var Controller $this
*/
$rest = new Rest();

$rest->setCrud(<?=$model?>\Crud::getInstance());
$rest = new Rest(<?=$model?>\Crud::getInstance());

$rest->head('system', 'rest/head', 'Read');
$rest->get('system', 'rest/get', 'Read');
Expand Down
4 changes: 1 addition & 3 deletions tests/Generator/samples/rest.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
/**
* @var Controller $this
*/
$rest = new Rest();

$rest->setCrud(Users\Crud::getInstance());
$rest = new Rest(Users\Crud::getInstance());

$rest->head('system', 'rest/head', 'Read');
$rest->get('system', 'rest/get', 'Read');
Expand Down

0 comments on commit b4be854

Please sign in to comment.