laminas-api-tools / api-tools-documentation

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

It seems laminas-component-installer does not install api-tools-documentation as a module #26

Closed haclong closed 2 years ago

haclong commented 2 years ago

Bug Report

Q A
Version(s) 1.5.x

Summary

As instructed, i have used

composer require laminas-api-tools/api-tools-documentation

the installation goes well so far but either this method does not trigger the laminas-component-installer (to be honest, i don't know how the installer is triggered / used - when it happens, it happens and if not, i'm unaware it did not be used)

Current behavior

when i go to [my domain]/api-tools/documentation, there's a error (i think it is runtime exception) saying the documentation route can not be found

How to reproduce

on a fresh install install api-tools (eventually, you don't want the api-tools-documentation yet) then install api-tools-documentation

Expected behavior

i am not sure it is an "expected" behaviour :

when i do composer require laminas-api-tools/api-tools-documentation-swagger, the Laminas\ApiTools\Documentation\Swagger module is automatically added to the modules.conf.php

when i do composer require laminas-api-tools/api-tools-documentation, i have to add Laminas\ApiTools\Documentation module manually to the modules.conf.php

this is not a big issue but the different behaviour between two packages by the same vendor feels strange...