First commit
This commit is contained in:
21
app/Controllers/Controller.php
Normal file
21
app/Controllers/Controller.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace KamilCraftApi\App\Controllers;
|
||||
|
||||
use KamilCraftApi\Interfaces\ControllerInterface;
|
||||
use KamilCraftApi\Response;
|
||||
|
||||
class Controller implements ControllerInterface
|
||||
{
|
||||
private Response $response;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->response = new Response();
|
||||
}
|
||||
|
||||
protected function response(): Response
|
||||
{
|
||||
return $this->response;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user