9
9
* file that was distributed with this source code.
10
10
*/
11
11
12
-
13
12
namespace Symfony \Cmf \Component \Routing ;
14
13
15
14
use Doctrine \Common \Collections \Collection ;
@@ -58,10 +57,11 @@ public function setContentRepository(ContentRepositoryInterface $contentReposito
58
57
/**
59
58
* {@inheritDoc}
60
59
*
61
- * @param string $name ignored
60
+ * @param string $name ignored.
62
61
* @param array $parameters must either contain the field 'route' with a
63
- * RouteObjectInterface or the field 'content_id' with a document
64
- * id to get the route for (implementing RouteReferrersReadInterface)
62
+ * RouteObjectInterface or the field 'content_id'
63
+ * with the id of a document implementing
64
+ * RouteReferrersReadInterface.
65
65
*
66
66
* @throws RouteNotFoundException If there is no such route in the database
67
67
*/
@@ -152,7 +152,7 @@ protected function getBestLocaleRoute(SymfonyRoute $route, $parameters)
152
152
*
153
153
* @param mixed $name
154
154
* @param array $parameters which should contain a content field containing
155
- * a RouteReferrersReadInterface object
155
+ * a RouteReferrersReadInterface object
156
156
*
157
157
* @return SymfonyRoute the route instance
158
158
*
@@ -225,8 +225,9 @@ protected function getRouteByLocale($routes, $locale)
225
225
* @param SymfonyRoute $route
226
226
* @param string $locale
227
227
*
228
- * @return bool TRUE if there is either no $locale, no _locale requirement
229
- * on the route or if the requirement and the passed $locale match.
228
+ * @return bool true if there is either no $locale, no _locale requirement
229
+ * on the route or if the requirement and the passed $locale
230
+ * match.
230
231
*/
231
232
private function checkLocaleRequirement (SymfonyRoute $ route , $ locale )
232
233
{
@@ -242,8 +243,8 @@ private function checkLocaleRequirement(SymfonyRoute $route, $locale)
242
243
* @param array $parameters the parameters determined by the route
243
244
*
244
245
* @return string the locale following of the parameters or any other
245
- * information the router has available. defaultLocale if no other locale
246
- * can be determined.
246
+ * information the router has available. defaultLocale if no
247
+ * other locale can be determined.
247
248
*/
248
249
protected function getLocale ($ parameters )
249
250
{
0 commit comments