Actions
Bug #54491
closedEpic #47018: Implement Composer support and clean package manager API
PackageManager doesn't solve/recognize real composer packages
Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
composer
Target version:
-
Start date:
2013-12-18
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
I add this snippet to the PackageStates.php:
'doctrine_dbal' => array ( 'manifestPath' => '', 'composerName' => 'typo3/doctrine_dbal', 'state' => 'inactive', 'packagePath' => 'typo3conf/ext/doctrine_dbal/', 'classesPath' => 'Classes/', ),
and this is how my composer.json looks like:
{ "name": "typo3/doctrine_dbal", "type": "typo3-cms-framework", "description": "TYPO3 Core", "homepage": "http://typo3.org", "license": ["GPL-2.0+"], "version": "6.2.0", "require": { "typo3/cms/core": "*", "doctrine/dbal": "2.4.*" }, "replace": { "dbal": "*" } }
"doctrine/dbal": "2.4.*" is a composer dependency which will downloaded into the vendor folder of the extension.
I have a fresh installation with an empty database. When I start TYPO3 I will get the following error:
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'The package "doctrine_dbal" depends on "doctrine/dbal" which is not present in the system.' in /Volumes/HDD/Users/sok/Development/TYPO3/CMS/core/master/typo3/sysext/core/Classes/Package/PackageManager.php on line 608 ( ! ) UnexpectedValueException: The package "doctrine_dbal" depends on "doctrine/dbal" which is not present in the system. in /Volumes/HDD/Users/sok/Development/TYPO3/CMS/core/master/typo3/sysext/core/Classes/Package/PackageManager.php on line 608 Call Stack # Time Memory Function Location 1 0.0076 248008 {main}( ) ../Install.php:0 2 66.8783 2631112 TYPO3\CMS\Install\Controller\StepController->execute( ) ../Install.php:134 3 67.0292 3212456 TYPO3\CMS\Install\Controller\StepController->executeSpecificStep( ) ../StepController.php:69 4 67.0460 3237232 TYPO3\CMS\Install\Controller\Action\Step\DatabaseConnect->execute( ) ../StepController.php:90 5 72.9332 3301616 TYPO3\CMS\Install\Controller\Action\Step\DatabaseConnect->executeLoadDoctrineExtension( ) ../DatabaseConnect.php:61 6 76.1516 3323008 TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadExtension( ??? ) ../DatabaseConnect.php:618 7 76.1517 3323096 TYPO3\CMS\Core\Package\PackageManager->activatePackage( ??? ) ../ExtensionManagementUtility.php:1805 8 76.1518 3323160 TYPO3\Flow\Package\PackageManager->activatePackage( ??? ) ../PackageManager.php:530 9 76.1520 3328552 TYPO3\CMS\Core\Package\FailsafePackageManager->sortAndSavePackageStates( ) ../PackageManager.php:542 10 76.1520 3328600 TYPO3\Flow\Package\PackageManager->sortAndSavePackageStates( ) ../FailsafePackageManager.php:92 11 76.1520 3328808 TYPO3\CMS\Core\Package\PackageManager->sortAvailablePackagesByDependencies( ) ../PackageManager.php:914 12 76.1520 3329176 TYPO3\CMS\Core\Package\PackageManager->getAvailablePackageLoadingOrder( ) ../PackageManager.php:748 13 76.1520 3329408 TYPO3\CMS\Core\Package\PackageManager->buildDependencyGraph( ) ../PackageManager.php:691 14 76.2027 3514248 TYPO3\CMS\Core\Package\PackageManager->buildDependencyGraphForPackages( ??? ) ../PackageManager.php:659
Actions