From 700465db987b17c85895b8e6eb4f7e5ac80c730f Mon Sep 17 00:00:00 2001 From: Raoul Date: Sat, 6 Jun 2020 15:10:41 +0200 Subject: [PATCH] Clean up. --- app/controllers/ApiController.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/controllers/ApiController.php b/app/controllers/ApiController.php index a381404..98d8874 100644 --- a/app/controllers/ApiController.php +++ b/app/controllers/ApiController.php @@ -17,18 +17,15 @@ use Nofw\Core\Config; class ApiController extends AbstractController { - private $config; private $model; - public function __construct(Config $config, UserModel $model) { - $this->config = $config; + public function __construct(UserModel $model) { $this->model = $model; } public function index(ServerRequestInterface $request, array $args): ResponseInterface { return $this->json([ 'data' => 'some data', - 'db_data' => $this->model->info(), 'links' => [ 'link1' => 'http://link1.com', 'link2' => 'http://link2.com'