2017 © Pedro Peláez
 

library multitenancy

image

keystone/multitenancy

  • Wednesday, June 7, 2017
  • by tompedals
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Multitenancy

A helpful library for multitenancy support in Symfony applications., (*1)

What it does:, (*2)

  • Determine the tenant from a route parameter.
  • Scope ORM queries to the current tenant.
  • Scope new entities to the current tenant.
  • Sets the default route parameter.
  • Controller argument resolver for the tenant.

Installation

Use Composer to install the package:, (*3)

composer require keystone/multitenancy

Add the Symfony bundle to your kernel and configure it:, (*4)

public function registerBundles()
{
    $bundles[] = new Keystone\Multitenancy\Bundle\KeystoneMultitenancyBundle();
}
keystone_multitenancy:
  tenant_repository_id: app.repository.tenant
  tenant_route_parameter: tenantSubdomain
  tenant_filter_column: tenant_id

The Versions