36 $this->objectContainer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\
TYPO3\CMS\
Extbase\Object\
Container\Container::class);
57 $properties = get_object_vars($this);
58 unset($properties[
'objectContainer']);
59 return array_keys($properties);
85 return class_exists($objectName,
true);
95 public function get($objectName, ...$constructorArguments)
97 if ($objectName ===
'DateTime') {
98 $instance = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($objectName, ...$constructorArguments);
100 $instance = $this->objectContainer->getInstance($objectName, $constructorArguments);
115 throw new \TYPO3\CMS\Extbase\Object\Container\Exception\UnknownObjectException(
'Object "' . $objectName .
'" is not registered.', 1265367590);
128 return $this->objectContainer->getEmptyObject($className);