laminas-api-tools / api-tools

Laminas API Tools module for Laminas
https://api-tools.getlaminas.org/documentation
BSD 3-Clause "New" or "Revised" License
37 stars 19 forks source link

AssetManager could not be initialized #21

Open weierophinney opened 4 years ago

weierophinney commented 4 years ago

After clean installation:

  1. composer create-project -sdev zfcampus/zf-apigility-skeleton
  2. composer update I have an error: Zend\ModuleManager\Exception\RuntimeException: Module (AssetManager) could not be initialized. in C:\_work\projects\sites\site_dotaquiz\vendor\zendframework\zend-modulemanager\src\ModuleManager.php on line 203

Tried to install zfcampus/zf-asset-manager.


Originally posted by @Avatar4eg at https://github.com/zfcampus/zf-apigility/issues/172

weierophinney commented 4 years ago

@Avatar4eg zfcampus/zf-apigility-skeleton is not yet updated to use ZF3 modules, please use zf-apigility v1.2


Originally posted by @michalbundyra at https://github.com/zfcampus/zf-apigility/issues/172#issuecomment-236611570

weierophinney commented 4 years ago

I also use zfcampus/zf-apigility-doctrine, which has version conflicts if packages not updated.


Originally posted by @Avatar4eg at https://github.com/zfcampus/zf-apigility/issues/172#issuecomment-236617543

weierophinney commented 4 years ago

@Avatar4eg Yes, I'm working on it, doctrine modules are not yet release to support ZF3 modules, need to be patient to use it will ZF3. I'd suggest to use it on ZF2 for now or wait few more days and start on ZF3.


Originally posted by @michalbundyra at https://github.com/zfcampus/zf-apigility/issues/172#issuecomment-236621184

weierophinney commented 4 years ago

In my case what helped is composer require rwoverdijk/assetmanager


Originally posted by @jamjan at https://github.com/zfcampus/zf-apigility/issues/172#issuecomment-242255058

weierophinney commented 4 years ago

@jamjan It is possible now because rwoverdijk/assetmanager is finally updated to support ZF2 and ZF3. More about this change in apigility you can read here: https://apigility.org/documentation/intro/updating-to-1-4#asset-management


Originally posted by @michalbundyra at https://github.com/zfcampus/zf-apigility/issues/172#issuecomment-242285051