PHP code example of socloz / knp-gaufrette-bundle
1. Go to this page and download the library: Download socloz/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/ */
socloz / knp-gaufrette-bundle example snippets
php
// app/autoload.php
$loader->registerNamespaces(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');
gaufrette://backup1/file
gaufrette://amazonS3/file