diff --git a/controllers/CreateApiRoutesCall.class.php b/controllers/CreateApiRoutesCall.class.php index 1cf9893..bf1e51a 100644 --- a/controllers/CreateApiRoutesCall.class.php +++ b/controllers/CreateApiRoutesCall.class.php @@ -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){