Skip to content
Snippets Groups Projects
Commit 1def86f1 authored by Oleksandr Milkovskyi's avatar Oleksandr Milkovskyi
Browse files

Issue #3202330 by maosmurf, a.milkovsky, osopolar, mostepaniukvm: Allow any FileSystemInterface

parent bb952ba7
Branches 8.x-3.x
No related tags found
No related merge requests found
......@@ -6,7 +6,6 @@ use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Entity\EntityFieldManagerInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Field\FieldTypePluginManagerInterface;
use Drupal\Core\File\FileSystem;
use Drupal\Core\File\FileSystemInterface;
use Drupal\media\MediaSourceBase;
use Drupal\media\MediaInterface;
......@@ -39,7 +38,7 @@ class Riddle extends MediaSourceBase {
/**
* The file system service.
*
* @var \Drupal\Core\File\FileSystem
* @var \Drupal\Core\File\FileSystemInterface
*/
protected $fileSystem;
......@@ -74,14 +73,14 @@ class Riddle extends MediaSourceBase {
* The field type plugin manager service.
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The config factory service.
* @param \Drupal\Core\File\FileSystem $file_system
* @param \Drupal\Core\File\FileSystemInterface $file_system
* The file system service.
* @param \GuzzleHttp\Client $http_client
* The http client service.
* @param \Drupal\riddle_marketplace\RiddleFeedServiceInterface $riddleFeed
* Riddle feed service.
*/
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, FieldTypePluginManagerInterface $field_type_manager, ConfigFactoryInterface $config_factory, FileSystem $file_system, Client $http_client, RiddleFeedServiceInterface $riddleFeed) {
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, FieldTypePluginManagerInterface $field_type_manager, ConfigFactoryInterface $config_factory, FileSystemInterface $file_system, Client $http_client, RiddleFeedServiceInterface $riddleFeed) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $entity_field_manager, $field_type_manager, $config_factory);
$this->fileSystem = $file_system;
$this->httpClient = $http_client;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment