Skip to content

Commit

Permalink
Merge pull request #12 from maurobonfietti/0.13.0
Browse files Browse the repository at this point in the history
Version 0.13.0
  • Loading branch information
maurobonfietti committed Jun 26, 2020
2 parents 44bd937 + cbf5d1c commit 02252e8
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Command/CrudGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class CrudGeneratorCommand extends Command
{
const COMMAND_VERSION = '0.12.0';
const COMMAND_VERSION = '0.13.0';

public function __construct($app)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Command/CrudGeneratorService.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ private function updateRoutes()
{
$routes = '
$app->get("/'.$this->entity.'", "App\Controller\\'.$this->entityUpper.'\GetAll");
$app->get("/'.$this->entity.'/[{id}]", "App\Controller\\'.$this->entityUpper.'\GetOne");
$app->post("/'.$this->entity.'", "App\Controller\\'.$this->entityUpper.'\Create");
$app->put("/'.$this->entity.'/[{id}]", "App\Controller\\'.$this->entityUpper.'\Update");
$app->delete("/'.$this->entity.'/[{id}]", "App\Controller\\'.$this->entityUpper.'\Delete");
$app->get("/'.$this->entity.'/{id}", "App\Controller\\'.$this->entityUpper.'\GetOne");
$app->put("/'.$this->entity.'/{id}", "App\Controller\\'.$this->entityUpper.'\Update");
$app->delete("/'.$this->entity.'/{id}", "App\Controller\\'.$this->entityUpper.'\Delete");
';
$file = __DIR__ . '/../../../../../src/App/Routes.php';
$content = file_get_contents($file);
Expand Down
2 changes: 1 addition & 1 deletion src/Command/TemplateBase/Objectbase/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace App\Controller\Objectbase;

use App\Lib\JsonResponse;
use App\Helper\JsonResponse;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;

Expand Down
2 changes: 1 addition & 1 deletion src/Command/TemplateBase/Objectbase/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace App\Controller\Objectbase;

use App\Lib\JsonResponse;
use App\Helper\JsonResponse;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;

Expand Down
2 changes: 1 addition & 1 deletion src/Command/TemplateBase/Objectbase/GetAll.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace App\Controller\Objectbase;

use App\Lib\JsonResponse;
use App\Helper\JsonResponse;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;

Expand Down
2 changes: 1 addition & 1 deletion src/Command/TemplateBase/Objectbase/GetOne.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace App\Controller\Objectbase;

use App\Lib\JsonResponse;
use App\Helper\JsonResponse;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;

Expand Down
2 changes: 1 addition & 1 deletion src/Command/TemplateBase/Objectbase/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace App\Controller\Objectbase;

use App\Lib\JsonResponse;
use App\Helper\JsonResponse;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;

Expand Down

0 comments on commit 02252e8

Please sign in to comment.