OXID eShop CE  6.1.5
OxidEsales\EshopCommunity\Internal\Application\ContainerFactory Class Reference
+ Collaboration diagram for OxidEsales\EshopCommunity\Internal\Application\ContainerFactory:

Public Member Functions

 getContainer ()
 

Static Public Member Functions

static getInstance ()
 

Private Member Functions

 __construct ()
 
 initializeContainer ()
 
 loadContainerFromCache ($cachefile)
 
 createAndCompileSymfonyContainer ()
 
 saveContainerToCache ($cachefile)
 
 getCacheFilePath ()
 

Private Attributes

 $symfonyContainer = null
 

Static Private Attributes

static $instance = null
 

Constructor & Destructor Documentation

◆ __construct()

OxidEsales\EshopCommunity\Internal\Application\ContainerFactory::__construct ( )
private

ContainerFactory constructor.

Make the constructor private

Member Function Documentation

◆ createAndCompileSymfonyContainer()

OxidEsales\EshopCommunity\Internal\Application\ContainerFactory::createAndCompileSymfonyContainer ( )
private

Builds the container from services.yaml and compiles it

◆ getCacheFilePath()

OxidEsales\EshopCommunity\Internal\Application\ContainerFactory::getCacheFilePath ( )
private
Returns
string

◆ getContainer()

OxidEsales\EshopCommunity\Internal\Application\ContainerFactory::getContainer ( )
Returns
ContainerInterface

◆ getInstance()

static OxidEsales\EshopCommunity\Internal\Application\ContainerFactory::getInstance ( )
static

◆ initializeContainer()

OxidEsales\EshopCommunity\Internal\Application\ContainerFactory::initializeContainer ( )
private

Loads container from cache if available, otherwise create the container from scratch.

◆ loadContainerFromCache()

OxidEsales\EshopCommunity\Internal\Application\ContainerFactory::loadContainerFromCache (   $cachefile)
private
Parameters
string$cachefile

◆ saveContainerToCache()

OxidEsales\EshopCommunity\Internal\Application\ContainerFactory::saveContainerToCache (   $cachefile)
private

Dumps the compiled container to the cachefile.

Parameters
string$cachefile

Member Data Documentation

◆ $instance

OxidEsales\EshopCommunity\Internal\Application\ContainerFactory::$instance = null
staticprivate

◆ $symfonyContainer

OxidEsales\EshopCommunity\Internal\Application\ContainerFactory::$symfonyContainer = null
private

The documentation for this class was generated from the following file: