PHP code example of libre-informatique / varieties-bundle

1. Go to this page and download the library: Download libre-informatique/varieties-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/ */

    

libre-informatique / varieties-bundle example snippets




use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;

public function registerBundles()
    {
        $bundles = [
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
            new Symfony\Bundle\TwigBundle\TwigBundle(),
            new Symfony\Bundle\MonologBundle\MonologBundle(),
            new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
            new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
            new AppBundle\AppBundle(),
            # Sonata
            new Sonata\CoreBundle\SonataCoreBundle(), 
            new Sonata\BlockBundle\SonataBlockBundle(), 
            new Knp\Bundle\MenuBundle\KnpMenuBundle(),
            new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),
            new Sonata\AdminBundle\SonataAdminBundle(),
            new Sonata\IntlBundle\SonataIntlBundle(),
            # blast
            new Blast\CoreBundle\BlastCoreBundle(),
            new Blast\OuterExtensionBundle\BlastOuterExtensionBundle(),
            new Blast\BaseEntitiesBundle\BlastBaseEntitiesBundle(),
            new Blast\UtilsBundle\BlastUtilsBundle(),
            # bundle
            new Librinfo\VarietiesBundle\LibrinfoVarietiesBundle(),
            new Librinfo\MediaBundle\LibrinfoMediaBundle(),
            new Stfalcon\Bundle\TinymceBundle\StfalconTinymceBundle(),
            # sylius
            new Librinfo\SonataSyliusUserBundle\SonataSyliusUserBundle(),
        ];



namespace AppBundle\Entity\OuterExtension\LibrinfoVarietiesBundle;

trait VarietyExtension
{
    use \Librinfo\MediaBundle\Entity\OuterExtension\HasImages;
}