PHP code example of tsslabs / knp-gaufrette-bundle

1. Go to this page and download the library: Download tsslabs/knp-gaufrette-bundle 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/ */

    

tsslabs / knp-gaufrette-bundle example snippets

 php


// app/autoload.php

$loader->addClassMap(array(
    'Knp\Bundle'                => __DIR__.'/../vendor/bundles',
    'Gaufrette'                 => __DIR__.'/../vendor/gaufrette/src',
    // ...
));
 php


// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(

        // ...

        new Knp\Bundle\GaufretteBundle\KnpGaufretteBundle()
    );

    // ...
}
 php
$container->get('knp_gaufrette.filesystem_map')->get('bar');

    "    ...
        "amazonwebservices/aws-sdk-for-php": "1.6.2"
    },