Closed RalfEggert closed 7 years ago
I'm not sure why this is happening. If you figure it out I'd love to know. Otherwise please wait until I have some time to look at this :)
My first gues would be the require
section of the composer.json
:
"require": {
"php": ">=5.3.3",
"zendframework/zend-modulemanager": "2.*",
"zendframework/zend-stdlib": "2.*",
"zendframework/zend-servicemanager": "2.*",
"zendframework/zend-loader": "2.*",
"zendframework/zend-eventmanager": "2.*",
"zendframework/zend-mvc": "2.*",
"kriswallsmith/assetic": "~1.2.1"
},
The new skeleton uses:
"require": {
"php": "^5.6 || ^7.0",
"zendframework/zend-component-installer": "^1.0 || ^0.2 || ^1.0.0-dev@dev",
"zendframework/zend-mvc": "^3.0"
},
I have no idea how to solve it but maybe using the || for alternative versions might help.
Well, clearly incompat with zendframework/zend-mvc:3.0
. Needs upgrading, which may require changes (mostly factories-related)
You've got a conflict with version numbers in your composer.json files. Maybe you're specifying a particular version of a package, but one of the packages is specifying a different version.
Also ZF2 2.5 drops support for PHP 5.3 Could that be your issue?
Just upgraded my Apigility project using composer. The interesting output is:
Updating dependencies (including require-dev)
- Removing symfony/process (v2.8.8)
- Removing rwoverdijk/assetmanager (1.6.0)
- Removing kriswallsmith/assetic (v1.2.1)
It broke the system displaying the error:
Fatal error: Uncaught Zend\ModuleManager\Exception\RuntimeException: Module (AssetManager) could not be initialized. in /srv/httpd/apigility/vendor/zendframework/zend-modulemanager/src/ModuleManager.php on line 203
This fixed the issue:
./composer.phar require "rwoverdijk/assetmanager"
Seems like composer setup problem.
@mbn18 - Apigility removed the AssetManager from it's list of dependencies in the last update. But that doesn't remove the AssetManager from your list of installed modules, hence the error. With that said, I believe the AssetManager is still being used and added to the list of "suggested" packages for Apigility. So installing this manually was probably the right solution.
@RWOverdijk - Looks like this issue can also be closed now thanks to: https://github.com/RWOverdijk/AssetManager/pull/193/files
Ah cool :) Always happy to close tickets!
First I install the new skeleton application and choose the minimal install with no optional packages:
Then I want to install the AssetManager:
I get the following messages: