3 Commits
2.1 ... 3.x

Author SHA1 Message Date
User
5c055a0019 20250302#3 2025-03-02 21:25:50 +03:00
User
50b52fefee 20250302#2 2025-03-02 21:19:08 +03:00
User
03d13fca9e 20250302#1 2025-03-02 19:13:31 +03:00
2 changed files with 28 additions and 4 deletions

View File

@@ -10,13 +10,13 @@ Stable version
composer require rmphp/foundation
```
```bash
composer require rmphp/foundation:"^2.0"
composer require rmphp/foundation:"^3.0"
```
Dev version contains the latest changes
```bash
composer require rmphp/foundation:"2.x-dev"
composer require rmphp/foundation:"3.x-dev"
```

View File

@@ -4,9 +4,33 @@ namespace Rmphp\Foundation;
use Psr\Http\Message\RequestInterface;
interface RouterInterface {
/**
* @param string $mountPoint
*/
public function setStartPoint(string $mountPoint): void;
/**
* @param array $rules
*/
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;
}
/**
* @param RequestInterface $request
* @return array|null
*/
public function matchByArgv(RequestInterface $request) : ?array;
}