Closed weierophinney closed 3 years ago
Removed -n
from title because it is already used for --no-interaction
Originally posted by @adamturcsan at https://github.com/zendframework/zend-expressive-tooling/issues/66#issuecomment-370514426
It will requires also changes in zf-composer-autoloading
, because create command also register the module in composer and to do that correctly we need to know the namespace of the module.
Originally posted by @michalbundyra at https://github.com/zendframework/zend-expressive-tooling/issues/66#issuecomment-372304223
hi @weierophinney
Funny... was just trying to achieve this with the current tools. Is this still relevant for mezzio ?
Pretty sure I should be able to manage if that's any help...
dGo
@dgoosens Go for it! And yes, still relevant.
Bonus points if you convert tooling to laminas-cli first. :)
hi @weierophinney
Bonus points if you convert tooling to laminas-cli first. :)
Do you mean you'd want this mezzio dedicated toolkit to be based on https://github.com/laminas/laminas-cli ?
Yes!
You can likely accomplish it in a BC way by first adding laminas-cli config, and updating the README and docs to detail using the laminas <command names>
usage. From there, we can later do a v2 release that removes the mezzio
binary.
Wow...
That's a little more ambitious than just adding a new option to one of the commands... lol
But I definitely like a challenge and the sideproject I'm currently working on is almost done...
So why not
I'll give it a shot
Just FYI, the 2.0.x branch is refactored to be a laminas-cli command provider, if you want to work on this. I have a couple more feature requests for the 2.0.0 milestone, and may come back to this if you haven't provided a patch by then.
Resolved with #15
Would be nice to have this feature to work with arbitrary namespacing for more complex projects.
Something like
composer expressive module:create --namespace=Vendor\Project ModuleName
Resulting with a module in the default
src
folder with a folder nameModuleName
and a namespaceVendor\Project\ModuleName
and a ConfigProvider like the following:Originally posted by @adamturcsan at https://github.com/zendframework/zend-expressive-tooling/issues/66