20250302#2
This commit is contained in:
@@ -5,9 +5,32 @@ namespace Rmphp\Foundation;
|
|||||||
use Psr\Http\Message\RequestInterface;
|
use Psr\Http\Message\RequestInterface;
|
||||||
|
|
||||||
interface RouterInterface {
|
interface RouterInterface {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $mountPoint
|
||||||
|
*/
|
||||||
public function setStartPoint(string $mountPoint): void;
|
public function setStartPoint(string $mountPoint): void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array $rules
|
||||||
|
*/
|
||||||
public function withRules(array $rules) : void;
|
public function withRules(array $rules) : void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array $rules
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
public function withSet(array $rules): void;
|
public function withSet(array $rules): void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param RequestInterface $request
|
||||||
|
* @return array|null
|
||||||
|
*/
|
||||||
public function match(RequestInterface $request) : ?array;
|
public function match(RequestInterface $request) : ?array;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param RequestInterface $request
|
||||||
|
* @return array|null
|
||||||
|
*/
|
||||||
public function matchByArgv(RequestInterface $request) : ?array;
|
public function matchByArgv(RequestInterface $request) : ?array;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user