![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/laminas/laminas-router/src/ |
<?php declare(strict_types=1); namespace Laminas\Router; use Laminas\ServiceManager\ConfigInterface; /** * Provide base configuration for using the component. * * Provides base configuration expected in order to: * * - seed and configure the default routers and route plugin manager. * - provide routes to the given routers. * * @see ConfigInterface * * @psalm-import-type ServiceManagerConfigurationType from ConfigInterface */ class ConfigProvider { /** * Provide default configuration. * * @return array<string, array> */ public function __invoke() { return [ 'dependencies' => $this->getDependencyConfig(), 'route_manager' => $this->getRouteManagerConfig(), ]; } /** * Provide default container dependency configuration. * * @return ServiceManagerConfigurationType */ public function getDependencyConfig() { return [ 'aliases' => [ 'HttpRouter' => Http\TreeRouteStack::class, 'router' => RouteStackInterface::class, 'Router' => RouteStackInterface::class, 'RoutePluginManager' => RoutePluginManager::class, // Legacy Zend Framework aliases 'Zend\Router\Http\TreeRouteStack' => Http\TreeRouteStack::class, 'Zend\Router\RoutePluginManager' => RoutePluginManager::class, 'Zend\Router\RouteStackInterface' => RouteStackInterface::class, ], 'factories' => [ Http\TreeRouteStack::class => Http\HttpRouterFactory::class, RoutePluginManager::class => RoutePluginManagerFactory::class, RouteStackInterface::class => RouterFactory::class, ], ]; } /** * Provide default route plugin manager configuration. * * @return array */ public function getRouteManagerConfig() { return []; } }