Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c055a0019 | ||
|
|
50b52fefee | ||
|
|
03d13fca9e |
@@ -10,13 +10,13 @@ Stable version
|
|||||||
composer require rmphp/foundation
|
composer require rmphp/foundation
|
||||||
```
|
```
|
||||||
```bash
|
```bash
|
||||||
composer require rmphp/foundation:"^2.0"
|
composer require rmphp/foundation:"^3.0"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
Dev version contains the latest changes
|
Dev version contains the latest changes
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
composer require rmphp/foundation:"2.x-dev"
|
composer require rmphp/foundation:"3.x-dev"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -4,9 +4,33 @@ 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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @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;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user