Skip to content

Commit

Permalink
🔨 #118 add name space
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Jul 30, 2022
1 parent 7772163 commit 28d8648
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/CreateApiRoutesCall.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ public function addRouterForTable()
//--------------------------------------------------------------------------------------
public function addNameSpaces($contract = false)
{
$this->addLine('use Psr\Http\Message\ResponseInterface as Response;');
$this->addLine('use Psr\Http\Message\ServerRequestInterface as Request;');
$this->addLine('use Slim\Routing\RouteCollectorProxy as RouteCollectorProxy;');
$this->addLine('use Slim\Factory\AppFactory;');
$this->addBlankLine();
$this->addLine('use api_controllers\SysinfoAPI;');
if($contract){
Expand Down

0 comments on commit 28d8648

Please sign in to comment.