Project

General

Profile

Actions

Task #56944

closed

Check for a proper extension key on load

Added by Pascal Dürsteler over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Extension Manager
Target version:
-
Start date:
2014-03-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.

Actions

Also available in: Atom PDF