Feature #46910
Composer integration - PackageStates.php
Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-04-04
Due date:
% Done:
0%
Estimated time:
PHP Version:
5.4
Has patch:
No
Complexity:
Description
It seems that composer packages without autoload.psr-0 definition in its composer.json are not integrated correctly in Configuration/PackageStates.php which results in class not found exceptions.
E.g. using https://github.com/leafo/lessphp
composer.json:
"autoload": { "classmap": ["lessc.inc.php"] },
result in PackageStates.php:
'leafo.lessphp' => array ( 'manifestPath' => '', 'composerName' => 'leafo/lessphp', 'state' => 'active', 'packagePath' => 'Libraries/leafo/lessphp/', 'classesPath' => 'Classes/', ),
The classpath is wrong in that case. Correct would be 'classPath'=>'',