Close the router ressource
@param $oneRouter
@return int
186307
public function close($oneRouter): int
    {
        if ($this->resource != null) {
            JL::close($this->mercure_path);
        }
        return (1);
    }
803631
public function merge(self $router) {
        if ($this->running) {
            throw new \Error("Cannot merge routers after the server has started");
        }

        foreach ($router->routes as $route) {
            $route[1] = \ltrim($router->prefix, "/") . $route[1];
            $route[2] = Middleware\stack($route[2], ...$router->middlewares);
            $this->routes[] = $route;
        }

        $this->observers->addAll($router->observers);
    }
952956
public function router($Router = [])
    {
        /**
         * 'Controller'=> 'Home',
         * 'Mothed'    => 'Mothed',
         * 'Params'    => 'Params',
         */
        $this->_controller = $Router['controller'] ? ucfirst($Router['controller']) : 'Home';
        $this->_mothed = $Router['mothed'] ? ucfirst($Router['mothed']) : 'Index';
        $this->_params = $Router['params'] ? ucfirst($Router['params']) : '';
        return $this;
    }
1154123
public function dir_closedir() {
    assert(isset($this->client));
    $this->client->close();
    $this->client = null;
  }
45549
public function closeSocket()
    {
        if (is_resource($this->resource)) {
            fclose($this->resource);
            $this->resource = null;
        }
    }
684371
protected function getRoutesResolver()
    {
        return function () {
            // Create fast-route collector
            $routeCollector = new RouteCollector(new RouteParser, new DataGenerator);

            // Get routes data from application
            foreach ($this->getRoutes() as $route) {
                $routeCollector->addRoute($route['method'], $route['uri'], $route['action']);
            }

            return $routeCollector->getData();
        };
    }
34811
public function getUrlWindow($onEachSide = 3)
    {
        if (! $this->hasPages()) {
            return array('first' => null, 'slider' => null, 'last' => null);
        }

        $window = $onEachSide * 2;

        if ($this->lastPage() < ($window + 6)) {
            return $this->getSmallSlider();
        }

        // If the current page is very close to the beginning of the page range, we will
        // just render the beginning of the page range, followed by the last 2 of the
        // links in this list, since we will not have room to create a full slider.
        if ($this->currentPage() <= $window) {
            return $this->getSliderTooCloseToBeginning($window);
        }

        // If the current page is close to the ending of the page range we will just get
        // this first couple pages, followed by a larger window of these ending pages
        // since we're too close to the end of the list to create a full on slider.
        else if ($this->currentPage() > ($this->lastPage() - $window)) {
            return $this->getSliderTooCloseToEnding($window);
        }

        // If we have enough room on both sides of the current page to build a slider we
        // will surround it with both the beginning and ending caps, with this window
        // of pages in the middle providing a Google style sliding paginator setup.
        return $this->getFullSlider($onEachSide);
    }
733037
public function endMaintenanceAction()
    {
        //the current ip must be whitelisted so it can access the the plateform when it's under maintenance
        MaintenanceHandler::disableMaintenance();
        $this->ipwlm->removeIP($_SERVER['REMOTE_ADDR']);
        return new RedirectResponse($this->router->generate('claro_admin_parameters_index'));
    }
548983
private function gatherFacts(IRouter $router) {
        $facts = [];

        foreach ($router->getRoutesMatcher()->getFiltersMatcher()->getFilters() as $filter) {
            $filters[] = $filter->getName();
        }

        foreach ($router->getRoutes() as $route) {
            $filters = [];

            foreach ($router->getRoutesMatcher()->getFiltersMatcher()->getFilters() as $filter) {
                if ($filter->isEnabled()) {
                    $filters[] = $filter->getName();
                }
            }

            $facts[] = [
                'filters' => $filters,
                'hosts' => $router->getRoutesMatcher()->getRestrictionsMatcher()->getHosts(),
                'domains' => $router->getRoutesMatcher()->getRestrictionsMatcher()->getDomains(),
                'subdomains' => $router->getRoutesMatcher()->getRestrictionsMatcher()->getSubdomains(),
                'protocols' => $router->getRoutesMatcher()->getRestrictionsMatcher()->getProtocols(),
                'tlds' => $router->getRoutesMatcher()->getRestrictionsMatcher()->getTLDs(),
                'methods' => $route->getMethods(),
                'path' => $route->getPath(),
            ];
        }

        foreach ($router->getNestedRouters() as $router) {
            $facts = array_merge($facts, $this->gatherFacts($router));
        }

        return $facts;
    }
1324051
public function disconnect()
    {
        $streamResource = $this->getStreamResource();

        if (is_resource($streamResource)) {
            stream_socket_shutdown($streamResource, STREAM_SHUT_RDWR);
            $this->streamResource = null;
        }

        return $this;
    }
1180393
protected function _close() {
        if ($this->isConnected()) {
            fclose($this->_varnishConn);
            $this->_varnishConn = null;
        }
        return $this;
    }
820973
private function RedirectUrl()
    {
        if ($this->logout->GetNextUrl())
        {
            return FrontendRouter::Url($this->logout->GetNextUrl());
        }
        return CurrentUrl();
    }
1176334
public function close()
    {
        if (null === $this->sessionId) {
            return;
        }

        $this->client->closeBrowser($this->getSessionId());
        $this->sessionId = null;

        return $this;
    }
662366
function _close()
	{
		if ($this->transCnt) $this->RollbackTrans();
		$rez = @sqlsrv_close($this->_connectionID);
		$this->_connectionID = false;
		return $rez;
	}
833003
public function End($Authenticator = NULL) {
      if ($Authenticator == NULL)
         $Authenticator = Gdn::Authenticator();

      $Authenticator->AuthenticateWith()->DeAuthenticate();
      $this->SetCookie('-Vv', NULL, -3600);
      
      $this->UserID = 0;
      $this->User = FALSE;
      $this->_Attributes = array();
      $this->_Permissions = array();
      $this->_Preferences = array();
      $this->_TransientKey = FALSE;
   }
45953
public function setRouter(Router $router)
    {
        $this->router = $router;
        $this->router->setContext($this->context);
        $this->context->registerInstance($router);
    }
1009772
public function close()
    {
        if($resource = $this->getResource())
        {
            if(@fclose($resource) === true)
            {
                $this->_resource = null;
                return true;
            }
        }

        return false;
    }