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

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

parent dd6a99e0
No related branches found
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;
......@@ -81,7 +80,7 @@ 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.
......@@ -90,7 +89,7 @@ class Riddle extends MediaSourceBase {
* @param \Symfony\Component\Mime\MimeTypeGuesserInterface $mimeTypeGuesser
* The mime type guesser.
*/
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, MimeTypeGuesserInterface $mimeTypeGuesser) {
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, MimeTypeGuesserInterface $mimeTypeGuesser) {
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