40 lines
944 B
PHP
40 lines
944 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Nischcodes\Shiftcalc;
|
|
|
|
/**
|
|
* Router interface
|
|
*
|
|
* wraps routing into an simple interface
|
|
*
|
|
* PHP version 8.4 or higher
|
|
*
|
|
* LICENSE: GPL-3
|
|
*
|
|
* @package ShiftCalc
|
|
* @author nisch.codes <nischcodes@noreply.projects.nisch.codes>
|
|
* @copyright 2021 nisch.codes
|
|
* @license https://projects.nisch.codes/nischcodes/shiftcalc/src/branch/main/LICENSE GPL-3
|
|
* @version 1.0.0
|
|
* @link https://projects.nisch.codes/nischcodes/shiftcalc
|
|
*/
|
|
|
|
class Router {
|
|
|
|
protected array $routes = [];
|
|
|
|
public function dispatch(string $uri, string $method, ?array $parameter = []) {
|
|
//TODO
|
|
|
|
var_dump($uri);
|
|
var_dump($method);
|
|
var_dump($parameter);
|
|
}
|
|
|
|
public function registerRoutesFromController(string $controller, string $model = '', string $view = '') {
|
|
|
|
var_dump($controller);
|
|
var_dump($model);
|
|
var_dump($view);
|
|
}
|
|
} |