Skip to content

Commit fbd5c74

Browse files
committed
minor tweaks to the default route providers
1 parent 2dc5b9d commit fbd5c74

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

Doctrine/Orm/RouteProvider.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
*/
3232
class RouteProvider extends DoctrineProvider implements RouteProviderInterface
3333
{
34+
/**
35+
* @param $url
36+
*
37+
* @return array
38+
*/
3439
protected function getCandidates($url)
3540
{
3641
$candidates = array();
@@ -65,10 +70,17 @@ public function getRouteByName($name, $parameters = array())
6570
return $route;
6671
}
6772

73+
/**
74+
* {@inheritDoc}
75+
*/
6876
public function getRoutesByNames($names, $parameters = array())
6977
{
78+
return array();
7079
}
7180

81+
/**
82+
* {@inheritDoc}
83+
*/
7284
public function getRouteCollectionForRequest(Request $request)
7385
{
7486
$url = $request->getPathInfo();
@@ -105,6 +117,9 @@ public function getRouteCollectionForRequest(Request $request)
105117
return $collection;
106118
}
107119

120+
/**
121+
* @return \Doctrine\Common\Persistence\ObjectRepository
122+
*/
108123
protected function getRoutesRepository()
109124
{
110125
return $this->getObjectManager()->getRepository($this->className);

Doctrine/Phpcr/RouteProvider.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ class RouteProvider extends DoctrineProvider implements RouteProviderInterface
4242
*/
4343
protected $idPrefix = '';
4444

45+
/**
46+
* @param $prefix
47+
*/
4548
public function setPrefix($prefix)
4649
{
4750
$this->idPrefix = $prefix;
@@ -85,6 +88,11 @@ public function getRouteCollectionForRequest(Request $request)
8588
return $collection;
8689
}
8790

91+
/**
92+
* @param $url
93+
*
94+
* @return array
95+
*/
8896
protected function getCandidates($url)
8997
{
9098
$candidates = array();

0 commit comments

Comments
 (0)