diff --git a/UPGRADE.md b/UPGRADE.md index 1c5eb727..fe2182ab 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -125,7 +125,7 @@ Socialstream 2.x includes a new action to generate the redirects URI's used to a You should then register this action with Socialstream by placing the following code into the `boot` method of your application's `SocialstreamServiceProvider`: ```php -use JoelButcher\Socialstream\Actions\GenerateRedirectForProvider; +use App\Actions\Socialstream\GenerateRedirectForProvider; Socialstream::generatesProvidersRedirectsUsing(GenerateRedirectForProvider::class); ``` diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index 4612dd52..5ecd8673 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -100,6 +100,7 @@ protected function installLivewireStack() // Actions... copy(__DIR__.'/../../stubs/app/Actions/Socialstream/CreateConnectedAccount.php', app_path('Actions/Socialstream/CreateConnectedAccount.php')); copy(__DIR__.'/../../stubs/app/Actions/Socialstream/CreateUserFromProvider.php', app_path('Actions/Socialstream/CreateUserFromProvider.php')); + copy(__DIR__.'/../../stubs/app/Actions/Socialstream/GenerateRedirectForProvider.php', app_path('Actions/Socialstream/GenerateRedirectForProvider.php')); copy(__DIR__.'/../../stubs/app/Actions/Socialstream/HandleInvalidState.php', app_path('Actions/Socialstream/HandleInvalidState.php')); copy(__DIR__.'/../../stubs/app/Actions/Socialstream/SetUserPassword.php', app_path('Actions/Socialstream/SetUserPassword.php')); diff --git a/src/Actions/GenerateRedirectForProvider.php b/stubs/app/Actions/Socialstream/GenerateRedirectForProvider.php similarity index 91% rename from src/Actions/GenerateRedirectForProvider.php rename to stubs/app/Actions/Socialstream/GenerateRedirectForProvider.php index 8da2226b..191e7913 100644 --- a/src/Actions/GenerateRedirectForProvider.php +++ b/stubs/app/Actions/Socialstream/GenerateRedirectForProvider.php @@ -1,6 +1,6 @@