32 lines
846 B
PHP
32 lines
846 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Symfony package.
|
|
*
|
|
* (c) Fabien Potencier <fabien@symfony.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Symfony\Component\Routing\Generator;
|
|
|
|
/**
|
|
* UrlGeneratorInterface is the interface that all URL generator classes must implements.
|
|
*
|
|
* @author Fabien Potencier <fabien@symfony.com>
|
|
*/
|
|
interface UrlGeneratorInterface
|
|
{
|
|
/**
|
|
* Generates a URL from the given parameters.
|
|
*
|
|
* @param string $name The name of the route
|
|
* @param array $parameters An array of parameters
|
|
* @param Boolean $absolute Whether to generate an absolute URL
|
|
*
|
|
* @return string The generated URL
|
|
*/
|
|
function generate($name, array $parameters, $absolute = false);
|
|
}
|