Download the PHP package dotsunited/bundlefu-silex-service-provider without Composer
On this page you can find all versions of the php package dotsunited/bundlefu-silex-service-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dotsunited/bundlefu-silex-service-provider
More information about dotsunited/bundlefu-silex-service-provider
Files in dotsunited/bundlefu-silex-service-provider
Package bundlefu-silex-service-provider
Short Description Silex service provider for BundleFu
License MIT
Homepage https://github.com/dotsunited/BundleFuSilexServiceProvider
Informations about the package bundlefu-silex-service-provider
Silex service provider for BundleFu
The BundleFuSilexServiceProvider integrates BundleFu into the Silex micro-framework.
Installation
BundleFuSilexServiceProvider can be installed using the Composer tool. You can either add dotsunited/bundlefu-silex-service-provider
to the dependencies in your composer.json, or if you want to install BundleFuSilexServiceProvider as standalone, go to the main directory and run:
You can then use the composer-generated autoloader to access the BundleFuSilexServiceProvider classes:
Usage
Register the BundleFuServiceProvider to your Silex application:
You can now use the bundlefu.factory
service to create bundles in your application:
To configure the factory, you can pass the bundlefu.options
and bundlefu.filters
parameters:
Twig
The service provider automatically registers the BundleFu twig extension if Twig is available (ensure that you register the BundleFuServiceProvider after the TwigServiceProvider in your application).
If do not want the extension to be registered, set bundlefu.twig.extension
with the value false
as a parameter:
License
BundleFuSilexServiceProvider is released under the MIT License.