dev-master
9999999-dev http://appventus.comHandle multiple dns site management
MIT
The Development Requires
domain multiple dns multi
Handle multiple dns site management
This bundle provide multiple domain behavior for Symfony2 applications., (*1)
add, (*2)
{ "require": { "appventus/multi-domain-bundle": "dev-master", } }
in your composer.json
or composer require appventus/multi-domain-bundle
, (*3)
register the bundle adding it to your bundles.php file, (*4)
return [ [...] AppVentus\MultiDomainBundle\AvMultiDomainBundle::class => ['all' => true], ];
and add the DomainTrait to all your domain managed entities:, (*5)
/** * Page * * @ORM\Table() * @ORM\Entity */ class Page { use \AppVentus\MultiDomainBundle\Traits\DomainTrait; [...] }
Annnnnnd, it's done !, (*6)
Your Page entity will now be available only if his domain is the same as the request domain., (*7)
Have fun !, (*8)
Handle multiple dns site management
MIT
domain multiple dns multi