bagisto / bagisto-package-generator

Bagisto Package Generator
MIT License
38 stars 14 forks source link

Service Provider Command Should Also Have Plain Feature #12

Closed devansh-webkul closed 8 months ago

devansh-webkul commented 4 years ago

Bug When I am creating a service provider for the package then register() and boot() method always filled up. Due to which its create a problem when I am registering the provider on the plain package.

For e.g., If I am using plain package then only folder structure is coming. Now, I am creating a service provider via the command line. Then the service provider is fully registered with routes, views which not loaded yet. Which fails the composer dump-autoload command.

This is the case with a normal package what if I want a provider that does something else. Then it that case the user needs to remove the whole file boot() method's line again and again.

Expectation Service provider command should also have the plain features like package have.