keystone / multitenancy
0.1.4
2017-06-07 20:23 UTC
Requires
- php: >=7.1
- doctrine/orm: ^2.5
- symfony/config: ^3.2
- symfony/dependency-injection: ^3.2
- symfony/event-dispatcher: ^3.2
- symfony/http-foundation: ^3.2
- symfony/http-kernel: ^3.2
- symfony/routing: ^3.2
- symfony/validator: ^3.2
Requires (Dev)
- mockery/mockery: ^0.9
- phpstan/phpstan: ^0.5.1
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2024-12-22 03:28:21 UTC
README
A helpful library for multitenancy support in Symfony applications.
What it does:
- 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:
composer require keystone/multitenancy
Add the Symfony bundle to your kernel and configure it:
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