public function InstagramPostsObtainedSubscriber::__construct in Instagram Feeds 8
Constructs a new PageManagerRoutes.
Parameters
\GuzzleHttp\Client $http_client: The instance of Guzzle HTTP Client.
\Drupal\Core\Utility\Token $token: The token service.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The Logger factory service.
File
- src/
EventSubscriber/ InstagramPostsObtainedSubscriber.php, line 40
Class
- InstagramPostsObtainedSubscriber
- Subscriber to InstagramPostsObtainedEvent event.
Namespace
Drupal\instagram_feeds\EventSubscriberCode
public function __construct(Client $http_client, Token $token, LoggerChannelFactoryInterface $logger_factory) {
$this
->setHttpClient($http_client)
->setToken($token)
->setLogger($logger_factory);
// Added for compatibility with Drupal < 8.7.0.
$this->file_exists_replace = defined('\\Drupal\\Core\\File\\FileSystemInterface::EXISTS_REPLACE') ? FileSystemInterface::EXISTS_REPLACE : FILE_EXISTS_REPLACE;
}