has('config') ? $container->get('config') : []; // Defaults $class = TreeRouteStack::class; $config = isset($config['router']) ? $config['router'] : []; return $this->createRouter($class, $config, $container); } /** * Create and return RouteStackInterface instance * * For use with zend-servicemanager v2; proxies to __invoke(). * * @param ServiceLocatorInterface $container * @return RouteStackInterface */ public function createService(ServiceLocatorInterface $container) { return $this($container, RouteStackInterface::class); } }