[FLOW3-general] After update to 1.0: annotation "@FLOW3\Scope" in class My\First\Package was never imported

Stephan Schuler Stephan.Schuler at netlogix.de
Mon Oct 31 10:07:27 CET 2011


Hey Jens.


The "FLOW3" part of "@FLOW3\Scope" is the shortened namespace part and "Scope" is a class
name. The annotation is called "TYPO3\FLOW3\Annotations\Scope" and lives in the file system at
"Packages\Framework\TYPO3.FLOW3\Classes\Annotations\Scope.php".

So you should either
* use the "use" statement ("use TYPO3\FLOW3\Annotations as FLOW3;") and keep the annotation
   "@FLOW3\Scope" or
* make the annotation "@TYPO3\FLOW3\Annotations\Scope".

I would prefer the first, because that's what karstens command line migration script tried to create
(Packages\Framework\TYPO3.FLOW3\Scripts\migrate-annotations.php).


Regards,



Stephan Schuler
Web-Entwickler

Telefon: +49 (911) 539909 - 0
E-Mail: Stephan.Schuler at netlogix.de
Website: media.netlogix.de


--
netlogix GmbH & Co. KG
IT-Services | IT-Training | Media
Andernacher Straße 53 | 90411 Nürnberg
Telefon: +49 (911) 539909 - 0 | Fax: +49 (911) 539909 - 99
E-Mail: info at netlogix.de | Internet: http://www.netlogix.de

netlogix GmbH & Co. KG ist eingetragen am Amtsgericht Nürnberg (HRA 13338)
Persönlich haftende Gesellschafterin: netlogix Verwaltungs GmbH (HRB 20634)
Umsatzsteuer-Identifikationsnummer: DE 233472254
Geschäftsführer: Stefan Buchta, Matthias Schmidt



-----Ursprüngliche Nachricht-----
Von: flow3-general-bounces at lists.typo3.org [mailto:flow3-general-bounces at lists.typo3.org] Im Auftrag von Jens
Gesendet: Montag, 31. Oktober 2011 09:36
An: flow3-general at lists.typo3.org
Betreff: Re: [FLOW3-general] After update to 1.0: annotation "@FLOW3\Scope" in class My\First\Package was never imported

Christian Müller (Kitsunet) wrote:

> On 30/10/11 16:40, Jens wrote:
>> Hi.
>> After update from beta2 to flow3 1.0.0 this error is shown:
>> The annotation "@FLOW3\Scope" in class My\First\Package was never
>> imported.
>> I replaced the folders Application/Framework, Build and Configuration
>> completely for the update.
>> Perhaps something from the beta is left. But where to find it?
>> Thanks for any help
>> Jens
>
> There were changes in the annotation syntax, please read the release
> notes and follow the directions in the Readme.txt and Upgrading.txt in
> the root folder of the download versions. You will find an upgrade
> script to move from old to new annotation syntax.
>
> Cheers,
> Christian

But that's exactly what I did. The given @FLOW3\Scope is one of the new annotations.
However, obviously something old from the beta remained somewhere somehow. After a complete new installation it works... Thanks


_______________________________________________
FLOW3-general mailing list
FLOW3-general at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general


More information about the FLOW3-general mailing list