Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Page/Mvc.php
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,8 @@ public function toArray()
'controller' => $this->getController(),
'params' => $this->getParams(),
'route' => $this->getRoute(),
'router' => $this->getRouter(),
'route_match' => $this->getRouteMatch(),
)
);
}
Expand Down
4 changes: 3 additions & 1 deletion test/Page/MvcTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,9 @@ public function testToArrayMethod()
'active' => true,
'visible' => false,
'foo' => 'bar',
'meaning' => 42
'meaning' => 42,
'router' => $this->router,
'route_match' => $this->routeMatch,
);

$page = new Page\Mvc($options);
Expand Down

0 comments on commit 2f2787b

Please sign in to comment.