Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c055a0019 | ||
|
|
50b52fefee | ||
|
|
03d13fca9e | ||
|
|
382bd5de1f | ||
|
|
18815227c1 | ||
|
|
ae3aca2dd2 | ||
|
|
660c84f372 | ||
|
|
bddcf4fde4 |
@@ -10,13 +10,13 @@ Stable version
|
||||
composer require rmphp/foundation
|
||||
```
|
||||
```bash
|
||||
composer require rmphp/foundation:"^1.0"
|
||||
composer require rmphp/foundation:"^3.0"
|
||||
```
|
||||
|
||||
|
||||
Dev version contains the latest changes
|
||||
|
||||
```bash
|
||||
composer require rmphp/foundation:"1.x-dev"
|
||||
composer require rmphp/foundation:"3.x-dev"
|
||||
```
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -4,5 +4,85 @@ namespace Rmphp\Foundation;
|
||||
|
||||
interface TemplateInterface {
|
||||
|
||||
/**
|
||||
* @param string $template
|
||||
* @param array $resource
|
||||
* @return TemplateInterface
|
||||
*/
|
||||
public function setTemplate(string $template, array $resource = []): TemplateInterface;
|
||||
|
||||
/**
|
||||
* @param string $subtemplatePath
|
||||
* @return TemplateInterface
|
||||
*/
|
||||
public function setSubtemplatePath(string $subtemplatePath = "") : TemplateInterface;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSubtemplatePath(): string;
|
||||
|
||||
/**
|
||||
* @param array $aliases
|
||||
* @return TemplateInterface
|
||||
*/
|
||||
public function setSubtemplatePathAlias(array $aliases = []) : TemplateInterface;
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getSubtemplatePathAlias() : array;
|
||||
|
||||
/**
|
||||
* @param string $subtemplate
|
||||
* @return string
|
||||
*/
|
||||
public function getFullSubtemplatePath(string $subtemplate) : string;
|
||||
|
||||
/**
|
||||
* @param string $point
|
||||
* @param string $string
|
||||
* @return void
|
||||
*/
|
||||
public function setValue(string $point, string $string) : void;
|
||||
|
||||
/**
|
||||
* @param string $point
|
||||
* @param string $string
|
||||
* @return void
|
||||
*/
|
||||
public function addValue(string $point, string $string) : void;
|
||||
|
||||
/**
|
||||
* @param string $point
|
||||
* @param string $subtemplate
|
||||
* @param array $resource
|
||||
* @return void
|
||||
*/
|
||||
public function setSubtemplate(string $point, string $subtemplate, array $resource = []) : void;
|
||||
|
||||
/**
|
||||
* @param string $point
|
||||
* @param string $subtemplate
|
||||
* @param array $resource
|
||||
* @return void
|
||||
*/
|
||||
public function addSubtemplate(string $point, string $subtemplate, array $resource = []) : void;
|
||||
|
||||
/**
|
||||
* @param string $incFile
|
||||
* @return string
|
||||
*/
|
||||
public function inc(string $incFile) : string;
|
||||
|
||||
/**
|
||||
* @param string $point
|
||||
* @return string
|
||||
*/
|
||||
public function getPoint(string $point) : string;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getResponse(): string;
|
||||
}
|
||||
Reference in New Issue
Block a user