zend-expressive-tooling
zend-expressive-tooling copied to clipboard
Add a Composer prompt on completion
Creating a new module still requires the user to do a composer update for PSR-4 namespaces to be added to Composer. A nice prompt informing the user of this, after the module creation is completed, would be nice.
If composer update is not done, the new ConfigProvider.php is not found.
Or just run composer dump-autoload in that script and do it for the user. If it fails it can prompt the user.
Hmm... enabling the module is delegated to logic in zf-composer-autoloading, which, as part of its work, calls on composer dump-autoload. When I've run this on Linux systems, it's "just worked"; autoloading is setup and ready to use immediately after running the module:create command.
Have you tried passing the --composer/-c option to specify the path to the composer command? If not, could you try that, and let me know if that causes autoloading to work?
This repository has been closed and moved to mezzio/mezzio-tooling; a new issue has been opened at https://github.com/mezzio/mezzio-tooling/issues/3.