This file contains hidden or 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
<?php | |
namespace App\Services\PushNotification; | |
use App\Services\DeviceToken; | |
use App\Services\FirebaseCloudMessage; | |
abstract class AbstractNotification | |
{ | |
/** | |
* @var FirebaseCloudMessage |
This file contains hidden or 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
<?php | |
namespace App\Services; | |
use GuzzleHttp\Client; | |
class FirebaseCloudMessage | |
{ | |
/** | |
* @var Client | |
*/ |
This file contains hidden or 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
<?php | |
namespace App\Services\Social; | |
use App\Exceptions\FurusatoException; | |
use GuzzleHttp\Client; | |
use GuzzleHttp\Exception\ClientException; | |
class FacebookService extends AbstractSocial | |
{ |
This file contains hidden or 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
<?php | |
return (new SocialAccountService($params['provider']))->firstOrCreate($params); |
This file contains hidden or 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
<?php | |
namespace App\Services\Social; | |
use App\Services\Social\Contrast\TwitterServiceInterface; | |
use League\OAuth1\Client\Credentials\TokenCredentials; | |
use League\OAuth1\Client\Server\Server; | |
class TwitterService extends AbstractSocial implements TwitterServiceInterface | |
{ | |
/** |