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

Commit 91dadfc

Browse files
committed
updated for interface changes in the Routing lib
1 parent 9387667 commit 91dadfc

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

AutoRoute/PathExists/AutoIncrementPath.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function execute(RouteStack $routeStack)
3636
$route = $this->dm->find(null, $path);
3737
$context = $routeStack->getContext();
3838

39-
if ($route->getRouteContent() === $context->getContent()) {
39+
if ($route->getContent() === $context->getContent()) {
4040
$routeStack->addRoute($route);
4141
return;
4242
}

AutoRoute/PathProvider/ContentObjectProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function providePath(RouteStack $routeStack)
5858
$object = $contentObject->$method();
5959

6060
$routeFilter = function ($referrer) use ($object) {
61-
if ($referrer instanceof Route && $referrer->getRouteContent() === $object) {
61+
if ($referrer instanceof Route && $referrer->getContent() === $object) {
6262
return true;
6363
}
6464

AutoRoute/RouteMaker/AutoRouteMaker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function make(RouteStack $routeStack)
3232
if (!$autoRoute) {
3333
$autoRoute = new AutoRoute;
3434
$autoRoute->setParent($context->getTopRoute());
35-
$autoRoute->setRouteContent($content);
35+
$autoRoute->setContent($content);
3636
}
3737

3838
$autoRoute->setName($routeStack->getPath());

Tests/Unit/AutoRoute/PathExists/AutoIncrementPathTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function testAutoIncrement($testUpdate)
6363
->will($this->returnValue($this->route1));
6464

6565
$this->route1->expects($this->once())
66-
->method('getRouteContent')
66+
->method('getContent')
6767
->will($this->returnValue($this->content1));
6868

6969
if (true === $testUpdate) {

Tests/Unit/AutoRoute/PathProvider/ContentObjectProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function testProvideObjectWithReferrers()
116116
))));
117117

118118
$this->route1->expects($this->once())
119-
->method('getRouteContent')
119+
->method('getContent')
120120
->will($this->returnValue($this->contentObject));
121121

122122
$this->route1->expects($this->once())

0 commit comments

Comments
 (0)