Commit ee7a1f1a authored by Fabien Potencier's avatar Fabien Potencier

merged branch ericclemmons/patch-1 (PR #192)

Commits
-------

01a0f12c Updating the `SymfonyBridgesServiceProvider` documentation with using the `TwigBridge` subtree split.

Discussion
----------

Added `TwigBridge` reference to `SymfonyBridgesServiceProvider` documentation

Updated the `SymfonyBridgesServiceProvider` documentation with suggestion on using the `TwigBridge` subtree split.

This has a much smaller footprint when doing deployments and packaging the application for 3rd parties.
parents 5b191309 01a0f12c
...@@ -34,8 +34,12 @@ provide you with the following additional capabilities: ...@@ -34,8 +34,12 @@ provide you with the following additional capabilities:
Registering Registering
----------- -----------
Make sure you place a copy of the Symfony2 Bridges in Make sure you place a copy of the Symfony2 Bridges in either
``vendor/symfony/src``. You can simply clone the whole Symfony2 into vendor:: ``vendor/symfony/src`` by cloning `Symfony2 <https://github.com/symfony/symfony>`_ or
``vendor/symfony/src/Symfony/Bridge/Twig`` by cloning `TwigBridge <https://github.com/symfony/TwigBridge>`_
(the latter having a smaller footprint).
Then, register the provider via::
$app->register(new Silex\Provider\SymfonyBridgesServiceProvider(), array( $app->register(new Silex\Provider\SymfonyBridgesServiceProvider(), array(
'symfony_bridges.class_path' => __DIR__.'/vendor/symfony/src', 'symfony_bridges.class_path' => __DIR__.'/vendor/symfony/src',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment