Property | Type | Description | |
---|---|---|---|
$cachedClassNamesByScope | array | ||
$configurationCache | Neos\Cache\Frontend\VariableFrontend | ||
$configurationManager | |||
$objectConfigurations | array | ||
$objectNameBuildStack | array | ||
$reflectionService | |||
$registeredClassNames | array | A list of all class names known to the Object Manager | |
$systemLogger | Neos\Flow\Log\SystemLoggerInterface |
Method | Description | |
---|---|---|
get ( string $objectName ) : object | Returns a fresh or existing instance of the object specified by $objectName. | |
getClassNamesByScope ( integer $scope ) : array | Returns a list of class names, which are configured with the given scope | |
getObjectConfigurations ( ) : array | Returns object configurations which were previously built by the ConfigurationBuilder. | |
getRegisteredClassNames ( ) : array | Returns a list of all class names, grouped by package key, which were registered by registerClassFiles() | |
initialize ( array $packages ) : void | Initializes the the object configurations and some other parts of this Object Manager. | |
injectConfigurationCache ( Neos\Cache\Frontend\VariableFrontend $configurationCache ) : void | Injects the configuration cache of the Object Framework | |
injectConfigurationManager ( |
||
injectReflectionService ( |
||
injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void | ||
setInstance ( string $objectName, object $instance ) : void | Sets the instance of the given object | |
shutdown ( ) : void | Shuts down this Object Container by calling the shutdown methods of all object instances which were configured to be shut down. |
Method | Description | |
---|---|---|
applyClassFilterConfiguration ( array $classNames, array $filterConfiguration, string $includeOrExclude = 'include' ) : array | Filters the classnames available for object management by filter expressions that either include or exclude classes. | |
buildObjectsArray ( ) : array | Builds the objects array which contains information about the registered objects, their scope, class, built method etc. | |
collectExcludedPackages ( array $registeredPackageKeys ) : array | Explodes the regular expressions for package name in excludeClasses configuration to full package names. | |
filterClassNamesFromConfiguration ( array $classNames, array $includeClassesConfiguration ) : array | Given an array of class names by package key this filters out classes that have been configured to be excluded or included by object management. | |
registerClassFiles ( array $packages ) : array | Traverses through all class files of the active packages and registers collects the class names as "all available class names". If the respective Flow settings say so, also function test classes are registered. |
protected applyClassFilterConfiguration ( array $classNames, array $filterConfiguration, string $includeOrExclude = 'include' ) : array | ||
$classNames | array | All classnames per package |
$filterConfiguration | array | The filter configuration to apply |
$includeOrExclude | string | if this is an "include" or "exclude" filter |
return | array | the remaining class |
protected buildObjectsArray ( ) : array | ||
return | array |
protected collectExcludedPackages ( array $registeredPackageKeys ) : array | ||
$registeredPackageKeys | array | |
return | array |
protected filterClassNamesFromConfiguration ( array $classNames, array $includeClassesConfiguration ) : array | ||
$classNames | array | 2-level array - key of first level is package key, value of second level is classname (FQN) |
$includeClassesConfiguration | array | array of includeClasses configurations |
return | array | The input array with all configured to be excluded from object management filtered out |
public getClassNamesByScope ( integer $scope ) : array | ||
$scope | integer | One of the ObjectConfiguration::SCOPE_ constants |
return | array | An array of class names configured with the given scope |
public getObjectConfigurations ( ) : array | ||
return | array |
public getRegisteredClassNames ( ) : array | ||
return | array |
public initialize ( array $packages ) : void | ||
$packages | array | An array of active packages to consider |
return | void |
public injectConfigurationCache ( Neos\Cache\Frontend\VariableFrontend $configurationCache ) : void | ||
$configurationCache | Neos\Cache\Frontend\VariableFrontend | |
return | void |
public injectConfigurationManager ( |
||
$configurationManager | ||
return | void |
public injectReflectionService ( |
||
$reflectionService | ||
return | void |
public injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void | ||
$systemLogger | Neos\Flow\Log\SystemLoggerInterface | |
return | void |
protected registerClassFiles ( array $packages ) : array | ||
$packages | array | A list of packages to consider |
return | array | A list of class names which were discovered in the given packages |
protected array $cachedClassNamesByScope | ||
return | array |
protected VariableFrontend,Neos\Cache\Frontend $configurationCache | ||
return | Neos\Cache\Frontend\VariableFrontend |
protected ConfigurationManager,Neos\Flow\Configuration $configurationManager | ||
return |
protected ReflectionService,Neos\Flow\Reflection $reflectionService | ||
return |
protected array $registeredClassNames | ||
return | array |