Untitled diff

Created Diff never expires
14 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
36 lines
11 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
33 lines
<?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;
}
}