36 lines
-14 Removals
33 lines
+12 Additions
<?php
<?php
/**
/**
* This file is part of the Nette Framework (https://nette.org)
* This file is part of the Nette Framework (https://nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
*/
namespace Nette\Application;
declare(strict_types=1);
namespace Nette\Routing;
use Nette;
use Nette;
/**
/**
* The bi-directional router.
* The bi-directional router.
*/
*/
interface IRouter
interface Router // Nette\Application\IRouter still exists
{
{
/** only matching route */
/** for back compatibility */
const ONE_WAY = 0b0001;
public const ONE_WAY = 0b0001;
/** @deprecated */
const SECURED = 0b0010;
/**
/**
* Maps HTTP request to a Request object.
* Maps HTTP request to an array.
* @return Request|null
*/
*/
function match(Nette\Http\IRequest $httpRequest);
function match(Nette\Http\IRequest $httpRequest): ?array;
/**
/**
* Constructs absolute URL from Request object.
* Constructs absolute URL from array.
* @return string|null
*/
*/
function constructUrl(Request $appRequest, Nette\Http\Url $refUrl);
function constructUrl(array $params, Nette\Http\UrlScript $refUrl): ?string;
}
}
Editor
Clear
Export as PDF