...
The container is also responsible for bootstrapping Innomatic, tenants, and other core operations.
Code Block | ||
---|---|---|
| ||
// InnomaticContainer is a singleton as defined in \Innomatic\Util\Singleton $container = \Innomatic\Core\InnomaticContainer::instance('\Innomatic\Core\InnomaticContainer'); // Get current tenant $tenant = $container->getCurrentTenant(); // Get current tenant user $tenant = $container->getCurrentUser(); // Get root database $rootDataAccess = $container->getDataAccess(); |
...