(1/1) Doctrine\Common\Annotations\AnnotationException [Semantical Error] The annotation "@mkdir" in method TYPO3\CMS\Core\Utility\GeneralUtility::mkdir() was never imported. Did you maybe forget to add a "use" statement for this annotation? in /data/www/avrotros.nl/zorgnu/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php line 54 * @return AnnotationException */ public static function semanticalError($message) { return new self('[Semantical Error] ' . $message); } /** * Creates a new AnnotationException describing an error which occurred during at Doctrine\Common\Annotations\AnnotationException::semanticalError('The annotation "@mkdir" in method TYPO3\\CMS\\Core\\Utility\\GeneralUtility::mkdir() was never imported. Did you maybe forget to add a "use" statement for this annotation?') in /data/www/avrotros.nl/zorgnu/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php line 733 if ($this->isIgnoredAnnotation($name)) { return false; } throw AnnotationException::semanticalError(sprintf('The annotation "@%s" in %s was never imported. Did you maybe forget to add a "use" statement for this annotation?', $name, $this->context)); } } $name = ltrim($name,'\\'); at Doctrine\Common\Annotations\DocParser->Annotation() in /data/www/avrotros.nl/zorgnu/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php line 661 continue; } $this->isNestedAnnotation = false; if (false !== $annot = $this->Annotation()) { $annotations[] = $annot; } } at Doctrine\Common\Annotations\DocParser->Annotations() in /data/www/avrotros.nl/zorgnu/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php line 354 $this->lexer->setInput(trim(substr($input, $pos), '* /')); $this->lexer->moveNext(); return $this->Annotations(); } /** * Finds the first valid annotation at Doctrine\Common\Annotations\DocParser->parse('/** * Wrapper function for mkdir. * Sets folder permissions according to $GLOBALS[\'TYPO3_CONF_VARS\'][\'SYS\'][\'folderCreateMask\'] * and group ownership according to $GLOBALS[\'TYPO3_CONF_VARS\'][\'SYS\'][\'createGroup\'] * * @param string $newFolder Absolute path to folder, see PHP mkdir() function. Removes trailing slash internally. * @return bool TRUE if @mkdir went well! */', 'method TYPO3\\CMS\\Core\\Utility\\GeneralUtility::mkdir()') in /data/www/avrotros.nl/zorgnu/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php line 284 $this->parser->setImports($this->getMethodImports($method)); $this->parser->setIgnoredAnnotationNames($this->getIgnoredAnnotationNames($class)); $this->parser->setIgnoredAnnotationNamespaces(self::$globalIgnoredNamespaces); return $this->parser->parse($method->getDocComment(), $context); } /** * {@inheritDoc} at Doctrine\Common\Annotations\AnnotationReader->getMethodAnnotations(object(ReflectionMethod)) in /data/www/avrotros.nl/zorgnu/html/typo3/sysext/extbase/Classes/Reflection/ClassSchema.php line 393 $docCommentParser->parseDocComment($reflectionMethod->getDocComment()); $argumentValidators = []; $annotations = $annotationReader->getMethodAnnotations($reflectionMethod); /** @var array|Validate[] $validateAnnotations */ $validateAnnotations = array_filter($annotations, function ($annotation) { return $annotation instanceof Validate; at TYPO3\CMS\Extbase\Reflection\ClassSchema->reflectMethods(object(ReflectionClass)) in /data/www/avrotros.nl/zorgnu/html/typo3/sysext/extbase/Classes/Reflection/ClassSchema.php line 156 $docCommentParser->parseDocComment($reflectionClass->getDocComment()); $this->tags = $docCommentParser->getTagsValues(); $this->reflectProperties($reflectionClass); $this->reflectMethods($reflectionClass); } /** * @param \ReflectionClass $reflectionClass at TYPO3\CMS\Extbase\Reflection\ClassSchema->__construct('TYPO3\\CMS\\Core\\Utility\\GeneralUtility') in /data/www/avrotros.nl/zorgnu/html/typo3/sysext/extbase/Classes/Reflection/ReflectionService.php line 361 */ protected function buildClassSchema($className): ClassSchema { try { $classSchema = new ClassSchema($className); } catch (\ReflectionException $e) { throw new Exception\UnknownClassException($e->getMessage() . '. Reflection failed.', 1278450972, $e); } $this->classSchemata[$className] = $classSchema; at TYPO3\CMS\Extbase\Reflection\ReflectionService->buildClassSchema('TYPO3\\CMS\\Core\\Utility\\GeneralUtility') in /data/www/avrotros.nl/zorgnu/html/typo3/sysext/extbase/Classes/Reflection/ReflectionService.php line 165 if (isset($this->classSchemata[$className])) { return $this->classSchemata[$className]; } return $this->buildClassSchema($className); } /** * Wrapper for method_exists() which tells if the given method exists. at TYPO3\CMS\Extbase\Reflection\ReflectionService->getClassSchema('TYPO3\\CMS\\Core\\Utility\\GeneralUtility') in /data/www/avrotros.nl/zorgnu/html/typo3/sysext/extbase/Classes/Object/Container/Container.php line 138 } return $this->singletonInstances[$className]; } $classSchema = $this->getReflectionService()->getClassSchema($className); $classIsSingleton = $classSchema->isSingleton(); if (!$classIsSingleton) { if (array_key_exists($className, $this->prototypeObjectsWhichAreCurrentlyInstanciated) !== false) { throw new \TYPO3\CMS\Extbase\Object\Exception\CannotBuildObjectException('Cyclic dependency in prototype object, for class "' . $className . '".', 1295611406); at TYPO3\CMS\Extbase\Object\Container\Container->getInstanceInternal('TYPO3\\CMS\\Core\\Utility\\GeneralUtility') in /data/www/avrotros.nl/zorgnu/html/typo3/sysext/extbase/Classes/Object/Container/Container.php line 261 if (array_key_exists($index, $givenConstructorArguments) && (!isset($argumentInformation['dependency']) || is_a($givenConstructorArguments[$index], $argumentInformation['dependency']))) { $parameter = $givenConstructorArguments[$index]; } else { if (isset($argumentInformation['dependency']) && $argumentInformation['hasDefaultValue'] === false) { $parameter = $this->getInstanceInternal($argumentInformation['dependency']); if ($classSchema->isSingleton() && !$parameter instanceof \TYPO3\CMS\Core\SingletonInterface) { $this->getLogger()->notice('The singleton "' . $className . '" needs a prototype in the constructor. This is often a bad code smell; often you rather want to inject a singleton.'); } } elseif ($argumentInformation['hasDefaultValue'] === true) { at TYPO3\CMS\Extbase\Object\Container\Container->getConstructorArguments('AVROTROS\\Esmanager\\Service\\Elastic\\Mapping\\Config', object(TYPO3\CMS\Extbase\Reflection\ClassSchema), array()) in /data/www/avrotros.nl/zorgnu/html/typo3/sysext/extbase/Classes/Object/Container/Container.php line 172 $classIsSingleton = $classSchema->isSingleton(); if ($classIsSingleton && !empty($givenConstructorArguments)) { throw new \TYPO3\CMS\Extbase\Object\Exception('Object "' . $className . '" has explicit constructor arguments but is a singleton; this is not allowed.', 1292858051); } $constructorArguments = $this->getConstructorArguments($className, $classSchema, $givenConstructorArguments); $instance = GeneralUtility::makeInstance($className, ...$constructorArguments); if ($classIsSingleton) { $this->singletonInstances[$className] = $instance; } at TYPO3\CMS\Extbase\Object\Container\Container->instanciateObject(object(TYPO3\CMS\Extbase\Reflection\ClassSchema)) in /data/www/avrotros.nl/zorgnu/html/typo3/sysext/extbase/Classes/Object/Container/Container.php line 146 throw new \TYPO3\CMS\Extbase\Object\Exception\CannotBuildObjectException('Cyclic dependency in prototype object, for class "' . $className . '".', 1295611406); } $this->prototypeObjectsWhichAreCurrentlyInstanciated[$className] = true; } $instance = $this->instanciateObject($classSchema, ...$givenConstructorArguments); $this->injectDependencies($instance, $classSchema); $this->initializeObject($instance); if (!$classIsSingleton) { unset($this->prototypeObjectsWhichAreCurrentlyInstanciated[$className]); at TYPO3\CMS\Extbase\Object\Container\Container->getInstanceInternal('AVROTROS\\Esmanager\\Service\\Elastic\\Mapping\\Config') in /data/www/avrotros.nl/zorgnu/html/typo3/sysext/extbase/Classes/Object/Container/Container.php line 261 if (array_key_exists($index, $givenConstructorArguments) && (!isset($argumentInformation['dependency']) || is_a($givenConstructorArguments[$index], $argumentInformation['dependency']))) { $parameter = $givenConstructorArguments[$index]; } else { if (isset($argumentInformation['dependency']) && $argumentInformation['hasDefaultValue'] === false) { $parameter = $this->getInstanceInternal($argumentInformation['dependency']); if ($classSchema->isSingleton() && !$parameter instanceof \TYPO3\CMS\Core\SingletonInterface) { $this->getLogger()->notice('The singleton "' . $className . '" needs a prototype in the constructor. This is often a bad code smell; often you rather want to inject a singleton.'); } } elseif ($argumentInformation['hasDefaultValue'] === true) { at TYPO3\CMS\Extbase\Object\Container\Container->getConstructorArguments('AVROTROS\\Esmanager\\Domain\\Repository\\EsRepository', object(TYPO3\CMS\Extbase\Reflection\ClassSchema), array()) in /data/www/avrotros.nl/zorgnu/html/typo3/sysext/extbase/Classes/Object/Container/Container.php line 172 $classIsSingleton = $classSchema->isSingleton(); if ($classIsSingleton && !empty($givenConstructorArguments)) { throw new \TYPO3\CMS\Extbase\Object\Exception('Object "' . $className . '" has explicit constructor arguments but is a singleton; this is not allowed.', 1292858051); } $constructorArguments = $this->getConstructorArguments($className, $classSchema, $givenConstructorArguments); $instance = GeneralUtility::makeInstance($className, ...$constructorArguments); if ($classIsSingleton) { $this->singletonInstances[$className] = $instance; } at TYPO3\CMS\Extbase\Object\Container\Container->instanciateObject(object(TYPO3\CMS\Extbase\Reflection\ClassSchema)) in /data/www/avrotros.nl/zorgnu/html/typo3/sysext/extbase/Classes/Object/Container/Container.php line 146 throw new \TYPO3\CMS\Extbase\Object\Exception\CannotBuildObjectException('Cyclic dependency in prototype object, for class "' . $className . '".', 1295611406); } $this->prototypeObjectsWhichAreCurrentlyInstanciated[$className] = true; } $instance = $this->instanciateObject($classSchema, ...$givenConstructorArguments); $this->injectDependencies($instance, $classSchema); $this->initializeObject($instance); if (!$classIsSingleton) { unset($this->prototypeObjectsWhichAreCurrentlyInstanciated[$className]); at TYPO3\CMS\Extbase\Object\Container\Container->getInstanceInternal('AVROTROS\\Esmanager\\Domain\\Repository\\EsRepository') in /data/www/avrotros.nl/zorgnu/html/typo3/sysext/extbase/Classes/Object/Container/Container.php line 90 */ public function getInstance($className, $givenConstructorArguments = []) { $this->prototypeObjectsWhichAreCurrentlyInstanciated = []; return $this->getInstanceInternal($className, ...$givenConstructorArguments); } /** * Create an instance of $className without calling its constructor at TYPO3\CMS\Extbase\Object\Container\Container->getInstance('AVROTROS\\Esmanager\\Domain\\Repository\\EsRepository', array()) in /data/www/avrotros.nl/zorgnu/html/typo3/sysext/extbase/Classes/Object/ObjectManager.php line 98 { if ($objectName === 'DateTime') { $instance = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($objectName, ...$constructorArguments); } else { $instance = $this->objectContainer->getInstance($objectName, $constructorArguments); } return $instance; } at TYPO3\CMS\Extbase\Object\ObjectManager->get('AVROTROS\\Esmanager\\Domain\\Repository\\EsRepository') in /data/www/avrotros.nl/zorgnu/html/typo3conf/ext/avrotros_resources/Classes/Utility/AtGeneralUtility.php line 349 */ public static function makeInstance(string $className, ...$args) { $objectManager = GeneralUtility::makeInstance(ObjectManager::class); return $objectManager->get($className, ...$args); } /** * Check if Application Context is migration at AVROTROS\AvrotrosResources\Utility\AtGeneralUtility::makeInstance('AVROTROS\\Esmanager\\Domain\\Repository\\EsRepository') in /data/www/avrotros.nl/zorgnu/html/typo3conf/ext/avrotros_resources/Classes/Service/FormEngine/LinkPreviewDataProvider.php line 29 if (!$this->isCorrectCommand($result)) { return $result; } $esRepository = AtGeneralUtility::makeInstance(EsRepository::class); foreach ($result['processedTca']['columns'] as $fieldName => $fieldConfig) { if (!$this->isTargetType($fieldConfig)) {