Task #56944
closedCheck for a proper extension key on load
100%
Description
I discussed this with Stefan Neufeind yesterday and are now submitting this as a task. The aim is mainly to enforce the CGL for extension keys, so developers won't run into errors which are very frustrating and time-consuming to resolve.
When developing an extension, and the first character of the vendor name is not uppercase, you will run into troubles when trying to implement model relations. The error you'll get is Found an invalid element type declaration in %s. A type "'\\vendor\\package\\Domain\\Repository\\FooRepository'" does not exist
.
I ran into that very problem yesterday and would have loved to get some guidance from TYPO3 instead of an error which you need to google to get your solution, and this at a very late point.
My suggestion is to implement a check when loading the extension in the extension manager. If the key is not well formatted, it won't be loaded and you'll see a clear error telling you the actual problem. This clearly is a "nice to have" feature. As the check only happens when loading the extension, the general performance of the extension should not be affected.