We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since we should not be generating anything on production, can this package be installed as a dev only dependency?
composer require --dev wn/lumen-generators
I'm asking in case there is any production run-time component of this package that is needed by generated components that I am not aware of.
If it can, then the documentation should probably mention this, since having it in production, I assume, will provide some extra load each request.
The text was updated successfully, but these errors were encountered:
At a minimum, the App\Providers\AppServiceProvider needs to be aware that the package may not be installed.
App\Providers\AppServiceProvider
... use Wn\Generators\CommandsServiceProvider; ... class AppServiceProvider extends ServiceProvider { public function register() { // Install the generators. if ($this->app->environment() === 'local' && class_exists(CommandsServiceProvider::class)) { $this->app->register(CommandsServiceProvider::class); } } ... }
Sorry, something went wrong.
Even simpler in bootstrap/app.php:
bootstrap/app.php
if (class_exists(Wn\Generators\CommandsServiceProvider::class)) { $app->register(Wn\Generators\CommandsServiceProvider::class); }
No branches or pull requests
Since we should not be generating anything on production, can this package be installed as a dev only dependency?
I'm asking in case there is any production run-time component of this package that is needed by generated components that I am not aware of.
If it can, then the documentation should probably mention this, since having it in production, I assume, will provide some extra load each request.
The text was updated successfully, but these errors were encountered: