Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Innomatic features Inversion of Control through a dependency injection container in \Innomatic\Core\InnomaticContainer.

The container is also responsible for bootstrapping Innomatic, tenants, and other core operations.

// 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();

 

 

  • No labels