4 * This file is part of the Symfony CMF package.
6 * (c) 2011-2015 Symfony CMF
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Cmf\Component\Routing;
14 use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
17 * This generator is able to handle more than string route names as symfony
20 interface VersatileGeneratorInterface extends UrlGeneratorInterface
23 * Whether this generator supports the supplied $name.
25 * This check does not need to look if the specific instance can be
26 * resolved to a route, only whether the router can generate routes from
27 * objects of this class.
29 * @param mixed $name The route "name" which may also be an object or anything
33 public function supports($name);
36 * Convert a route identifier (name, content object etc) into a string
37 * usable for logging and other debug/error messages.
40 * @param array $parameters which should contain a content field containing
41 * a RouteReferrersReadInterface object
45 public function getRouteDebugMessage($name, array $parameters = array());