PHP code example of dotsunited / bundlefu-silex-service-provider

1. Go to this page and download the library: Download dotsunited/bundlefu-silex-service-provider library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dotsunited / bundlefu-silex-service-provider example snippets





$app = new \Silex\Application();

$app->register(new DotsUnited\BundleFu\Silex\BundleFuServiceProvider());


$bundle = $app['bundlefu.factory']->createBundle();


$app->register(new DotsUnited\BundleFu\Silex\BundleFuServiceProvider(), array(
    'bundlefu.options' => array(
        'bypass' => true
    ),
    'bundlefu.filters' => array(
        'js_closure_compiler' => new \DotsUnited\BundleFu\Filter\ClosureCompilerService()
    )
));


$app->register(new DotsUnited\BundleFu\Silex\BundleFuServiceProvider(), array(
    'bundlefu.twig.extension' => false
));