add data from work folder
This commit is contained in:
parent
528ba365b4
commit
7052803761
218 changed files with 16123 additions and 1233 deletions
17
implementation/08-inversion-of-control/src/Action/Action.php
Normal file
17
implementation/08-inversion-of-control/src/Action/Action.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Lubian\NoFramework\Action;
|
||||
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
|
||||
abstract class Action implements \Psr\Http\Server\RequestHandlerInterface
|
||||
{
|
||||
public function __construct(
|
||||
protected ResponseInterface $response
|
||||
){}
|
||||
|
||||
abstract public function handle(ServerRequestInterface $request): ResponseInterface;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue