Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Add a Composer prompt on completion #29

Open
adamculp opened this issue May 7, 2017 · 3 comments
Open

Add a Composer prompt on completion #29

adamculp opened this issue May 7, 2017 · 3 comments

Comments

@adamculp
Copy link
Contributor

adamculp commented May 7, 2017

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.

@geerteltink
Copy link
Member

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

@weierophinney
Copy link
Member

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
Copy link
Member

This repository has been closed and moved to mezzio/mezzio-tooling; a new issue has been opened at mezzio/mezzio-tooling#3.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants