PHP code example of jonnx / laravel-socialite-atlassian
1. Go to this page and download the library: Download jonnx/laravel-socialite-atlassian library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jonnx / laravel-socialite-atlassian example snippets
AppServiceProvider.php
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
$this->bootAtlassianSocialite();
}
private function bootAtlassianSocialite()
{
$socialite = $this->app->make('Laravel\Socialite\Contracts\Factory');
$socialite->extend(
'atlassian',
function ($app) use ($socialite) {
$config = $app['config']['services.atlassian'];
return $socialite->buildProvider(AtlassianSocialiteProvider::class, $config);
}
);
}