You've already forked Php-Template
Some checks failed
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Has started running
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Has been cancelled
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Has been cancelled
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Has been cancelled
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Has been cancelled
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Has been cancelled
55 lines
1.2 KiB
PHP
55 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Siteworxpro\App\Controllers;
|
|
|
|
use League\Route\Http\Exception\NotFoundException;
|
|
use Nyholm\Psr7\ServerRequest;
|
|
use Psr\Http\Message\ResponseInterface;
|
|
|
|
abstract class Controller implements ControllerInterface
|
|
{
|
|
/**
|
|
* @param ServerRequest $request
|
|
* @return ResponseInterface
|
|
* @throws NotFoundException
|
|
*/
|
|
public function get(ServerRequest $request): ResponseInterface
|
|
{
|
|
throw new NotFoundException("not found");
|
|
}
|
|
|
|
/**
|
|
* @throws NotFoundException
|
|
*/
|
|
public function post(ServerRequest $request): ResponseInterface
|
|
{
|
|
throw new NotFoundException("not found");
|
|
}
|
|
|
|
/**
|
|
* @throws NotFoundException
|
|
*/
|
|
public function put(ServerRequest $request): ResponseInterface
|
|
{
|
|
throw new NotFoundException("not found");
|
|
}
|
|
|
|
/**
|
|
* @throws NotFoundException
|
|
*/
|
|
public function delete(ServerRequest $request): ResponseInterface
|
|
{
|
|
throw new NotFoundException("not found");
|
|
}
|
|
|
|
/**
|
|
* @throws NotFoundException
|
|
*/
|
|
public function patch(ServerRequest $request): ResponseInterface
|
|
{
|
|
throw new NotFoundException("not found");
|
|
}
|
|
}
|