- 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:
Simon Sessingø
2016-11-21 04:06:45 +01:00
parent efe5767220
commit dfd32c0904
7 changed files with 71 additions and 83 deletions
+23
View File
@@ -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);
}