This is mainly a follow-up to Documenting Fusion (but I didn’t want to revive this old post):
Today I stumbled upon the fact that we have Neos.Fusion:UriBuilder and Neos.Fusion:ActionUri and I was wondering about the differences between the two until I found out that the former was deprecated 4 years ago.
Inspite of that, it is still present in the Neos 9.2 code base.
That made me wonder: Did anyone experiment further or implement a way to mark Fusion prototypes and/or properties deprecated as discussed in the original post?
Could a meta attribute in the prototype like @deprecated work?
With an optional flag to raise a warning or error?
Not sure how much that costs in the parser.
Could also be useful when cleaning up larger projects.
thanks @sjsone for your nice ideas;) I like that we dont need to implement anything new - though just for the UriBuilder deprecation id prefer a simple deprecation log from within the PHP in \Neos\Fusion\FusionObjects\UriBuilderImplementation
And even better would obviously be an automated rector migration of all the usages at some point;)