zend-expressive-tooling icon indicating copy to clipboard operation
zend-expressive-tooling copied to clipboard

Add a Composer prompt on completion

Open adamculp opened this issue 8 years ago • 3 comments

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.

adamculp avatar May 07 '17 16:05 adamculp

Or just run composer dump-autoload in that script and do it for the user. If it fails it can prompt the user.

geerteltink avatar May 08 '17 09:05 geerteltink

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?

weierophinney avatar May 09 '17 16:05 weierophinney

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.

weierophinney avatar Dec 31 '19 21:12 weierophinney