protected function injectComponents(
        array $pages,
        $routeMatch = null,
        $router = null,
        $request = null
    ) {
        if ($routeMatch) {
            /* @var RouteMatch|MvcRouter\RouteMatch $routeMatch */
            $routeName = $routeMatch->getMatchedRouteName();

            foreach ($pages as &$page) {
                if (isset($page['active_on']) && in_array($routeName, (array) $page['active_on'])) {
                    $page['active'] = true;
                }
            }
        }

        return parent::injectComponents($pages, $routeMatch, $router, $request);
    }