Skip to content

Commit

Permalink
[6.x] Publish service provider (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbutcher authored May 18, 2024
1 parent d276c86 commit ab33ab4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Installer/Drivers/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public function install(string $composerBinary = 'global', InstallOptions ...$op
->ensureDirectoriesExist(array_merge(static::directoriesToCreateForStack(), [
app_path('Actions/Socialstream'),
app_path('Policies'),
app_path('Providers'),
]))
->installServiceProviders()
->installRoutes()
Expand Down Expand Up @@ -135,6 +136,8 @@ protected function ensureDirectoriesExist(array $directories): static
*/
protected function installServiceProviders(): static
{
copy(__DIR__.'/../../../stubs/app/Providers/SocialstreamServiceProvider.php', app_path('Providers/SocialstreamServiceProvider.php'));

ServiceProvider::addProviderToBootstrapFile('App\Providers\SocialstreamServiceProvider');

return $this;
Expand Down

0 comments on commit ab33ab4

Please sign in to comment.