Commit 01a0f12c authored by Eric Clemmons's avatar Eric Clemmons

Updating the `SymfonyBridgesServiceProvider` documentation with using the...

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

This has a much smaller footprint when doing deployments and packaging the application for 3rd parties.
parent b4fd8856
...@@ -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