Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 3b87d96

Browse files
committed
AutoRouteInterface implements RouteObjectInterface
Also docblock
1 parent d3ad7fc commit 3b87d96

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

AutoRoute/AutoRouteManager.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ public function handleDefunctRoutes()
8484
}
8585
}
8686

87+
/**
88+
* Populates an empty UrlContextCollection with UrlContexts
89+
*
90+
* @param $urlContextCollection UrlContextCollection
91+
*/
8792
private function getUrlContextsForDocument(UrlContextCollection $urlContextCollection)
8893
{
8994
$locales = $this->adapter->getLocales($urlContextCollection->getSubjectObject()) ? : array(null);

Model/AutoRouteInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
namespace Symfony\Cmf\Bundle\RoutingAutoBundle\Model;
44

5+
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
6+
57
/**
68
* Interface to be implemented by objects which represent
79
* auto routes.
810
*
911
* @author Daniel Leech <[email protected]>
1012
*/
11-
interface AutoRouteInterface
13+
interface AutoRouteInterface extends RouteObjectInterface
1214
{
1315
/**
1416
* Set a tag which can be used by a database implementation

0 commit comments

Comments
 (0)