mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 03:32:12 +00:00
Bugfixes
- Moved middleware stuff back to Route class. - Fixed Tests not working due to invalid method. - Updated depricated method-calls in demo-project.
This commit is contained in:
@@ -173,4 +173,27 @@ interface IRoute
|
||||
*/
|
||||
public function toArray();
|
||||
|
||||
/**
|
||||
* Get middlewares array
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getMiddlewares();
|
||||
|
||||
/**
|
||||
* Set middleware class-name
|
||||
*
|
||||
* @param string $middleware
|
||||
* @return static
|
||||
*/
|
||||
public function setMiddleware($middleware);
|
||||
|
||||
/**
|
||||
* Set middlewares array
|
||||
*
|
||||
* @param array $middlewares
|
||||
* @return $this
|
||||
*/
|
||||
public function setMiddlewares(array $middlewares);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user