���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/righteousmag.com/wp-content__a986334/plugins/cloudflare/src/Router/RequestRouter.php
���ѧ٧ѧ�
<?php namespace CF\Router; use CF\API\Request; use CF\API\APIInterface; use CF\Integration\IntegrationInterface; class RequestRouter { protected $integrationContext; protected $routerList; /** * @param IntegrationInterface $integrationContext */ public function __construct(IntegrationInterface $integrationContext) { $this->integrationContext = $integrationContext; $this->routerList = array(); } /** * @param APIInterface $client * @param $routes */ public function addRouter(APIInterface $client, $routes) { $router = new DefaultRestAPIRouter($this->integrationContext, $client, $routes); $this->routerList[$client->getAPIClientName()] = $router; } /** * @return array */ public function getRouterList() { return $this->routerList; } /** * @param $routerList */ public function setRouterList($routerList) { $this->routerList = $routerList; } /** * @param Request $request * * @return bool */ public function route(Request $request) { foreach ($this->getRouterList() as $router) { if ($router->getAPIClient()->shouldRouteRequest($request)) { return $router->route($request); } } return; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�