<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
libre-informatique / sonata-sylius-user-bundle example snippets
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// SYLIUS USER BUNDLE AND DEPENDENCIES
new FOS\RestBundle\FOSRestBundle(),
new JMS\SerializerBundle\JMSSerializerBundle($this),
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
new Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle(),
new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle(),
// Sylius Bundles have to be declared before DoctrineBundle
new Sylius\Bundle\ResourceBundle\SyliusResourceBundle(),
new Sylius\Bundle\MailerBundle\SyliusMailerBundle(),
new Sylius\Bundle\UserBundle\SyliusUserBundle(),
// OTHER BUNDLES...
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
// [...]
// SONATA SYLIUS USER BUNDLE
new Librinfo\SonataSyliusUserBundle\SonataSyliusUserBundle(),
);
}