OXID eShop CE  6.3.1
OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper Class Reference
+ Collaboration diagram for OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper:

Public Member Functions

 __construct (array $configArray)
 
 addImport (string $importFilePath)
 
 getImportFileNames ()
 
 removeImport (string $importFilePath)
 
 hasService (string $serviceKey)
 
 getService (string $serviceKey)
 
 addOrUpdateService (DIServiceWrapper $service)
 
 getConfigAsArray ()
 
 checkServices (ContainerInterface $container)
 
 checkServiceClassesCanBeLoaded ()
 
 getServices ()
 

Public Attributes

const SERVICE_SECTION = 'services'
 
const RESOURCE_KEY = 'resource'
 
const IMPORTS_SECTION = 'imports'
 

Private Member Functions

 getImports ()
 
 cleanUpConfig ()
 
 removeEmptySections ()
 
 removeInactiveServices ()
 
 removeService (DIServiceWrapper $service)
 
 addSectionIfMissing ($section)
 

Private Attributes

 $sectionDefaults = [self::SERVICE_SECTION => ['_defaults' => ['public' => false, 'autowire' => true]]]
 
 $configArray
 

Constructor & Destructor Documentation

◆ __construct()

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::__construct ( array  $configArray)

DIConfigWrapper constructor.

Parameters
array$configArray

Member Function Documentation

◆ addImport()

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::addImport ( string  $importFilePath)
Parameters
string$importFilePath
Returns
void

◆ addOrUpdateService()

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::addOrUpdateService ( DIServiceWrapper  $service)
Parameters
DIServiceWrapper$service

◆ addSectionIfMissing()

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::addSectionIfMissing (   $section)
private
Parameters
string$section

◆ checkServiceClassesCanBeLoaded()

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::checkServiceClassesCanBeLoaded ( )

Checks that the service classes configured for a module / package are really usable. It may happen that module code is still in the modules directory but is removed from autoloading. In this case, the services.yaml file should not be evaluated in any way.

Returns
bool

◆ checkServices()

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::checkServices ( ContainerInterface  $container)
Parameters
ContainerInterface$container
Exceptions
SystemServiceOverwriteException

◆ cleanUpConfig()

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::cleanUpConfig ( )
private

Removes not activated services and empty import or service sections from the array

◆ getConfigAsArray()

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::getConfigAsArray ( )
Returns
array

◆ getImportFileNames()

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::getImportFileNames ( )
Returns
array

◆ getImports()

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::getImports ( )
private
Returns
array

◆ getService()

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::getService ( string  $serviceKey)
Parameters
string$serviceKey
Returns
DIServiceWrapper
Exceptions
MissingServiceException

◆ getServices()

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::getServices ( )
Returns
DIServiceWrapper[]

◆ hasService()

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::hasService ( string  $serviceKey)
Parameters
string$serviceKey
Returns
bool

◆ removeEmptySections()

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::removeEmptySections ( )
private

Removes section entries when they are empty

◆ removeImport()

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::removeImport ( string  $importFilePath)
Parameters
string$importFilePath

◆ removeInactiveServices()

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::removeInactiveServices ( )
private

◆ removeService()

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::removeService ( DIServiceWrapper  $service)
private
Parameters
DIServiceWrapper$service

Member Data Documentation

◆ $configArray

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::$configArray
private

◆ $sectionDefaults

OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::$sectionDefaults = [self::SERVICE_SECTION => ['_defaults' => ['public' => false, 'autowire' => true]]]
private

◆ IMPORTS_SECTION

const OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::IMPORTS_SECTION = 'imports'

◆ RESOURCE_KEY

const OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::RESOURCE_KEY = 'resource'

◆ SERVICE_SECTION

const OxidEsales\EshopCommunity\Internal\Framework\DIContainer\DataObject\DIConfigWrapper::SERVICE_SECTION = 'services'

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