Skip to content

Commit fffd66e

Browse files
committed
removes errant trait (moved to Chev) and allows link generation from
objects
1 parent ffad79e commit fffd66e

2 files changed

Lines changed: 4 additions & 27 deletions

File tree

src/Response/Traits/RedirectableControllerTrait.php

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/Router/AbstractRouter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ protected function parseRequest($path){
9292
* @inheritdoc
9393
*/
9494
public function generate($controller, $action = null, $format = null, array $options = []){
95+
if(is_object($controller)){
96+
$controller = get_class($controller);
97+
}
98+
9599
return $this->generateFromRoute(new Route($controller, $action, $format, $options));
96100
}
97101

0 commit comments

Comments
 (0)