commitm/multi-tenant
Composer 安装命令:
composer require commitm/multi-tenant
包简介
关键字:
README 文档
README
simplify to configure multitenant bundle
Deployment
To deploy this project run
in packages/multi_tenant.yaml add:
multi_tenant: tenants: company_id: entity: App\Entity\Company aware: App\Entity\Interfaces\TenantAwares\CompanyAware property: company
company_id name tenant
entity entity name to limited others entities or automatically set tenant
aware to following entities what you want and limited results
Aware interface have to implements
CommitM\MultiTenant\Multitenancy\TenantAware
property name property tenant
CommitM\MultiTenant\Multitenancy\Provider\TenantsProvider
service to manage tenants
you can use like that:
$tenantsProvider->getTenantByClass(Company::class)->setEntity($this->company);
if tenant is set, you don't need remember using setter with tenant's entity $product = new Product(): $product->setCompany(); // this will be set automatically
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-04-05