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

Commit 06ad303

Browse files
author
Damien Flament
authored
Follow naming changes made in component.
Follow naming changes made in routing-auto component with symfony-cmf/routing-auto@cffb517 .
1 parent b5b0e28 commit 06ad303

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Model/AutoRoute.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323
class AutoRoute extends Route implements AutoRouteInterface
2424
{
25-
const DEFAULT_KEY_AUTO_ROUTE_TAG = '_auto_route_tag';
25+
const DEFAULT_KEY_AUTO_ROUTE_LOCALE = '_auto_route_tag';
2626

2727
/**
2828
* @var AutoRouteInterface
@@ -32,17 +32,17 @@ class AutoRoute extends Route implements AutoRouteInterface
3232
/**
3333
* {@inheritdoc}
3434
*/
35-
public function setAutoRouteTag($autoRouteTag)
35+
public function setAutoRouteLocale($autoRouteLocale)
3636
{
37-
$this->setDefault(self::DEFAULT_KEY_AUTO_ROUTE_TAG, $autoRouteTag);
37+
$this->setDefault(self::DEFAULT_KEY_AUTO_ROUTE_LOCALE, $autoRouteLocale);
3838
}
3939

4040
/**
4141
* {@inheritdoc}
4242
*/
43-
public function getAutoRouteTag()
43+
public function getAutoRouteLocale()
4444
{
45-
return $this->getDefault(self::DEFAULT_KEY_AUTO_ROUTE_TAG);
45+
return $this->getDefault(self::DEFAULT_KEY_AUTO_ROUTE_LOCALE);
4646
}
4747

4848
/**

0 commit comments

Comments
 (0)