Feature #41900

TYPO3 Flow Base Distribution - Bug #41843: Composer and rename issues (umbrella issue)

Check for duplicate PSR-0 autoload namespaces

Added by Robert Lemke almost 7 years ago. Updated over 6 years ago.

Status:
Accepted
Priority:
Should have
Category:
Package
Target version:
-
Start date:
2012-10-12
Due date:
% Done:

0%

PHP Version:
5.4
Has patch:
No
Complexity:

Description

Currently, if two packages define the same PSR-0 autoload namespace in their composer.json, it goes unnoticed by the package management.

For example, if someone (let's say, me) just copies a composer manifest from a different package (TYPO3.Flow) and forgets to update the "autoload" part, the new package will end up in a directory "TYPO3.Flow" too. The symptom then is that no Flow classes can be found by the autoloader, because it looks into the other package directory.

While generating PackageStates.php (or somewhere in that area) we should check for duplicate PSR-0 namespaces and issue a warning.

History

#1 Updated by Christian Jul Jensen almost 7 years ago

  • Status changed from New to Accepted
  • Assignee set to Christian Jul Jensen

#2 Updated by Karsten Dambekalns almost 7 years ago

  • Target version changed from 2.0 beta 1 to 2.1

#3 Updated by Robert Lemke over 6 years ago

  • Target version deleted (2.1)

Also available in: Atom PDF