Skip to content

Commit df70e1a

Browse files
committed
Merge branch 'new'
2 parents 0911205 + c2bc9d6 commit df70e1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This library has a quick use of the router with regular expressions based on [mrjgreen's phroute](https://github.com/mrjgreen/phroute).
1+
# This library has a quick use of the router with regular expressions based on [mrjgreen phroute](https://github.com/mrjgreen/phroute).
22
[![Latest Stable Version](http://poser.pugx.org/lion-framework/lion-route/v)](https://packagist.org/packages/lion-framework/lion-route) [![Total Downloads](http://poser.pugx.org/lion-framework/lion-route/downloads)](https://packagist.org/packages/lion-framework/lion-route) [![Latest Unstable Version](http://poser.pugx.org/lion-framework/lion-route/v/unstable)](https://packagist.org/packages/lion-framework/lion-route) [![License](http://poser.pugx.org/lion-framework/lion-route/license)](https://packagist.org/packages/lion-framework/lion-route) [![PHP Version Require](http://poser.pugx.org/lion-framework/lion-route/require/php)](https://packagist.org/packages/lion-framework/lion-route)
33

44
## Install

src/LionRoute/Route.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static function init(): Route {
1919
}
2020

2121
public static function getRoutes(): array {
22-
return (array) self::$router;
22+
return self::$router->getData()->getStaticRoutes();
2323
}
2424

2525
public static function newMiddleware(array $middleware): void {

0 commit comments

Comments
 (0)