| 1 | <?php |
||
| 10 | class UriDetectorDriver extends SubdomainDetectorDriver implements PrefixRoutes |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Minimun parts of the uri. |
||
| 14 | * |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | protected $minParts = 1; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Get the prefix for routes based on a given locale. |
||
| 21 | * |
||
| 22 | * @param string $locale |
||
| 23 | * @return string |
||
| 24 | */ |
||
| 25 | public function routePrefix($locale) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get parts of the url. |
||
| 42 | * |
||
| 43 | * @return array |
||
| 44 | */ |
||
| 45 | public function getSegments() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Array of aliases to a given locale. |
||
| 52 | * |
||
| 53 | * @param $locale |
||
| 54 | * @return array |
||
| 55 | */ |
||
| 56 | protected function getAliasesToLocale($locale) |
||
| 75 | } |
||
| 76 |