Skip to content

Commit 5528aa0

Browse files
committed
Removed interfaces from constructor.
Signed-off-by: Joshua Parker <[email protected]>
1 parent 9c6249b commit 5528aa0

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

Http/BaseController.php

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use Codefy\Framework\Contracts\RoutingController;
88
use Psr\Http\Message\ResponseInterface;
9-
use Psr\Http\Message\ServerRequestInterface;
109
use Qubus\Http\Session\SessionService;
1110
use Qubus\Routing\Controller\Controller;
1211
use Qubus\Routing\Router;
@@ -19,58 +18,12 @@ class BaseController extends Controller implements RoutingController
1918
{
2019
public function __construct(
2120
protected SessionService $sessionService,
22-
protected ServerRequestInterface $request,
23-
protected ResponseInterface $response,
2421
protected Router $router,
2522
protected ?Renderer $view = null,
2623
) {
2724
$this->setView(view: $view ?? new NativeLoader(config('view.path')));
2825
}
2926

30-
/**
31-
* Gets the request instance.
32-
*
33-
* @return ServerRequestInterface
34-
*/
35-
public function getRequest(): ServerRequestInterface
36-
{
37-
return $this->request;
38-
}
39-
40-
/**
41-
* Set the request instance.
42-
*
43-
* @param ServerRequestInterface $request
44-
* @return BaseController
45-
*/
46-
public function setRequest(ServerRequestInterface $request): self
47-
{
48-
$this->request = $request;
49-
50-
return $this;
51-
}
52-
53-
/**
54-
* Gets the response instance.
55-
*
56-
* @return ResponseInterface
57-
*/
58-
public function getResponse(): ResponseInterface
59-
{
60-
return $this->response;
61-
}
62-
63-
/**
64-
* @param ResponseInterface $response
65-
* @return BaseController
66-
*/
67-
public function setResponse(ResponseInterface $response): self
68-
{
69-
$this->response = $response;
70-
71-
return $this;
72-
}
73-
7427
/**
7528
* Gets the view instance.
7629
*

0 commit comments

Comments
 (0)