-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #216 from apiato/API-1049-Events-Listeners-are-not…
…-added-to-EventServiceProvider fix(generator): Listeners are not added to EventServiceProvider
- Loading branch information
Showing
11 changed files
with
162 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/Generator/Stubs/providers/event-service-provider-with-listener.stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace App\Containers\{{section-name}}\{{container-name}}\Providers; | ||
|
||
{{use-statements}} | ||
use App\Ship\Parents\Providers\EventServiceProvider as ParentEventServiceProvider; | ||
|
||
class {{class-name}} extends ParentEventServiceProvider | ||
{ | ||
protected $listen = {{event-listeners}}; | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace App\Containers\{{section-name}}\{{container-name}}\Providers; | ||
|
||
use App\Ship\Parents\Providers\MainServiceProvider as ParentMainServiceProvider; | ||
|
||
/** | ||
* The Main Service Provider of this container. | ||
* It will be automatically registered by the framework. | ||
*/ | ||
class {{class-name}} extends ParentMainServiceProvider | ||
{ | ||
public array $serviceProviders = [ | ||
// InternalServiceProviderExample::class, | ||
]; | ||
|
||
public array $aliases = [ | ||
// 'Foo' => Bar::class, | ||
]; | ||
|
||
public function register(): void | ||
{ | ||
parent::register(); | ||
} | ||
} |
File renamed without changes.