2017 © Pedro Peláez
 

symfony-bundle multi-domain-bundle

Handle multiple dns site management

image

appventus/multi-domain-bundle

Handle multiple dns site management

  • Wednesday, June 26, 2013
  • by paulandrieux
  • Repository
  • 4 Watchers
  • 6 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

MultiDomainBundle

This bundle provide multiple domain behavior for Symfony2 applications., (*1)

Installation

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)

The Versions

26/06 2013

dev-master

9999999-dev http://appventus.com

Handle multiple dns site management

  Sources   Download

MIT

The Development Requires

domain multiple dns multi