• Fabien Potencier's avatar
    added a SymfonyBridgesExtension · b550703b
    Fabien Potencier authored
    For now, it allows the Twig extension to register the Routing Twig extension:
    
    $app = new Application();
    $app->register(new SymfonyBridgesExtension(), array(
        'symfony_bridges.class_path' => '...',
    ));
    $app->register(new UrlGeneratorExtension());
    $app->register(new SessionExtension());
    $app->register(new TwigExtension(), array(...));
    
    You can now use {{ path() }} in templates to generate URLs.
    
    The order of registration of the extensions is significant.
    b550703b
Name
Last commit
Last update
src/Silex Loading commit data...
tests Loading commit data...
vendor Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
autoload.php Loading commit data...
compile Loading commit data...
example.htaccess Loading commit data...
phpunit.xml.dist Loading commit data...