Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\Routing\Generator\Dumper; Chris@0: Chris@0: use Symfony\Component\Routing\RouteCollection; Chris@0: Chris@0: /** Chris@0: * GeneratorDumperInterface is the interface that all generator dumper classes must implement. Chris@0: * Chris@0: * @author Fabien Potencier Chris@0: */ Chris@0: interface GeneratorDumperInterface Chris@0: { Chris@0: /** Chris@0: * Dumps a set of routes to a string representation of executable code Chris@0: * that can then be used to generate a URL of such a route. Chris@0: * Chris@0: * @param array $options An array of options Chris@0: * Chris@0: * @return string Executable code Chris@0: */ Chris@17: public function dump(array $options = []); Chris@0: Chris@0: /** Chris@0: * Gets the routes to dump. Chris@0: * Chris@0: * @return RouteCollection A RouteCollection instance Chris@0: */ Chris@0: public function getRoutes(); Chris@0: }