[TYPO3-team-core-v5] Upcoming commit: Big change in the component manager

Robert Lemke robert at typo3.org
Wed Jul 23 15:11:08 CEST 2008


Hi,

Am 23.07.2008 um 13:40 schrieb Malte Jansen:

> The @scope tag was just an example for a tag not known by   
> phpDocComment.
> With FLOW3CGL we have to check certain tags for a file-, class-,  
> var- or method-comment.
> - Is the @package declared?
> - Is the @author-tag used?
> - @scope makes only sense in a class-comment (not abstract-class or  
> interface)...
> - etc
>
> So there the basic tags from the phpDoc and the new ones introduced  
> by FLOW3
>
> For checking theses things I have created a model with the tags, so  
> you can check if a tag is valid or e.g. @param fits to the method- 
> argument.
> Some tags are not allowed/does not make sense in a certain comment  
> like the @scope in a file or method comment etc.
>
> So I have implement a pretty easy extendable model, which should  
> automatiacly check, if component is available for this tag.  
> (FactoryPattern)
> http://forge.typo3.org/repositories/browse/package-flow3cgl/trunk/Classes/DocComment/Elements
> http://forge.typo3.org/repositories/browse/package-flow3cgl/trunk/Classes/DocComment/Tags

Did you checkout the Reflection Service?

http://forge.typo3.org/repositories/entry/package-flow3/trunk/Classes/Reflection/F3_FLOW3_Reflection_Service.php

I guess getClassTagsValues() is what you're looking for, not?

> If you want to create your own Factory, you always have to inject  
> the ComponentManager and the ComponentFactory.
>
> Same issue for the F3_FLOW3_Validation_ValidatorResolver, it is also  
> a factory just using the getComponent and isComponentRegistered for  
> avoiding the exception from the factory. I pretty sure there are  
> already more locations, where you just create a "Subfactory", where  
> you could need it.

yes, sure there are situations where we already need custom factories.  
But I don't get the connection to your tag parsing.


Cheers,
robert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.netfielders.de/pipermail/typo3-team-core-v5/attachments/20080723/bcd3728b/attachment.pgp 


More information about the TYPO3-team-core-v5 mailing list