Container
class Container
Class Container
Constants
SELF |
|
Methods
No description
Find a cached container definition or construct a new one.
Construct a new container.
No description
No description
No description
No description
No description
No description
No description
Get a list of boot services.
No description
Determine whether the container services are available.
Details
at line 28
static TaggedContainerInterface
singleton(bool $reset = FALSE)
at line 52
ContainerInterface
loadContainer()
Find a cached container definition or construct a new one.
There are many weird contexts in which Civi initializes (eg different variations of multitenancy and different permutations of CMS/CRM bootstrap), and hook_container may fire a bit differently in each context. To mitigate risk of leaks between environments, we compute a unique envID (md5(DB_NAME, HTTP_HOST, SCRIPT_FILENAME, etc)) and use separate caches for each (eg "templates_c/CachedCiviContainer.$ENVID.php").
Constants: - CIVICRM_CONTAINER_CACHE -- 'always' [default], 'never', 'auto' - CIVICRM_DSN - CIVICRM_DOMAIN_ID
at line 90
ContainerBuilder
createContainer()
Construct a new container.
at line 326
Manager
createAngularManager()
at line 334
ContainerAwareEventDispatcher
createEventDispatcher(ContainerInterface $container)
at line 379
static LockManager
createLockManager()
at line 401
Kernel
createApiKernel(EventDispatcher $dispatcher, $magicFunctionProvider)
at line 451
static CRM_Core_Resources
createResources(ContainerInterface $container)
at line 464
static CRM_Core_PrevNextCache_Interface
createPrevNextCache(ContainerInterface $container)
at line 480
static
createCacheConfig()
at line 495
static
boot(bool $loadFromDB)
Get a list of boot services.
These are services which must be setup before the container can operate.
at line 538
static
getBootService($name)
at line 547
static bool
isContainerBooted()
Determine whether the container services are available.