Project

General

Profile

Actions

Bug #87115

closed

The annotation "@import" in method TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser::addImportsFromExternalFiles() cause exception

Added by Pixelant Developer over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-12-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When making instance on "\TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser" with extebase Object manager get an exception

(1/1) Doctrine\Common\Annotations\AnnotationException
[Semantical Error] The annotation "@import" in method TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser::addImportsFromExternalFiles() was never imported. Did you maybe forget to add a "use" statement for this annotation?
GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class)->get(\TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser::class)
Actions #1

Updated by Georg Ringer over 5 years ago

you can use ::makeInstance on that class, no objectmanager needed

Actions #2

Updated by Gerrit Code Review over 5 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59074

Actions #3

Updated by Gerrit Code Review over 5 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59074

Actions #4

Updated by Georg Ringer over 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack almost 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF