GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/Student/JimMartinson/Lab12/drupal/core/modules/simpletest/src/ |
Upload File : |
<?php namespace Drupal\simpletest; use Drupal\Core\Routing\PreloadableRouteProviderInterface; use Symfony\Cmf\Component\Routing\PagedRouteProviderInterface; use Symfony\Component\HttpFoundation\Request; /** * Rebuilds the router when the provider is instantiated. * * @todo Move this outside of simpletest namespace to the Drupal\Tests, see * https://www.drupal.org/node/2672762 */ class RouteProvider implements PreloadableRouteProviderInterface, PagedRouteProviderInterface { use \Drupal\Core\DependencyInjection\DependencySerializationTrait; /** * Loads the real route provider from the container and rebuilds the router. * * @return \Drupal\Core\Routing\PreloadableRouteProviderInterface|\Symfony\Cmf\Component\Routing\PagedRouteProviderInterface|\Symfony\Component\EventDispatcher\EventSubscriberInterface * The route provider. */ protected function lazyLoadItself() { if (!isset($this->service)) { $container = \Drupal::getContainer(); $this->service = $container->get('simpletest.router.route_provider'); $container->get('router.builder')->rebuild(); } return $this->service; } /** * {@inheritdoc} */ public function getRouteCollectionForRequest(Request $request) { return $this->lazyLoadItself()->getRouteCollectionForRequest($request); } /** * {@inheritdoc} */ public function getRouteByName($name) { return $this->lazyLoadItself()->getRouteByName($name); } /** * {@inheritdoc} */ public function preLoadRoutes($names){ return $this->lazyLoadItself()->preLoadRoutes($names); } /** * {@inheritdoc} */ public function getRoutesByNames($names) { return $this->lazyLoadItself()->getRoutesByNames($names); } /** * {@inheritdoc} */ public function getCandidateOutlines(array $parts) { return $this->lazyLoadItself()->getCandidateOutlines($parts); } /** * {@inheritdoc} */ public function getRoutesByPattern($pattern) { return $this->lazyLoadItself()->getRoutesByPattern($pattern); } /** * {@inheritdoc} */ public function routeProviderRouteCompare(array $a, array $b) { return $this->lazyLoadItself()->routeProviderRouteCompare($a, $b); } /** * {@inheritdoc} */ public function getAllRoutes() { return $this->lazyLoadItself()->getAllRoutes(); } /** * {@inheritdoc} */ public function reset() { return $this->lazyLoadItself()->reset(); } /** * {@inheritdoc} */ public function getRoutesPaged($offset, $length = NULL) { return $this->lazyLoadItself()->getRoutesPaged($offset, $length); } /** * {@inheritdoc} */ public function getRoutesCount() { return $this->lazyLoadItself()->getRoutesCount(); } }