Skip to content
Snippets Groups Projects
Commit a04530f9 authored by James Glasgow's avatar James Glasgow Committed by Oleh Vehera
Browse files

Issue #3430580: Automated Drupal 11 compatibility fixes for filefield_paths

parent 9773d834
No related branches found
No related tags found
1 merge request!21Issue #3430580: Automated Drupal 11 compatibility fixes for filefield_paths
Pipeline #320267 failed
......@@ -2,7 +2,7 @@ name: 'File (Field) Paths'
description: 'Adds improved Token based file sorting and renaming functionalities.'
package: Fields
configure: filefield_paths.admin_settings
core_version_requirement: ^10.3
core_version_requirement: ^10.3 || ^11
type: module
dependencies:
- drupal:file
......
......@@ -10,6 +10,7 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\StreamWrapper\StreamWrapperManagerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Request;
use Drupal\Core\Config\TypedConfigManagerInterface;
/**
* Administration settings form for File (Field) Paths.
......@@ -35,8 +36,8 @@ class SettingsForm extends ConfigFormBase {
/**
* {@inheritdoc}
*/
public function __construct(ConfigFactoryInterface $config_factory, StreamWrapperManagerInterface $stream_wrapper_manager, FileSystemInterface $file_system) {
parent::__construct($config_factory);
public function __construct(ConfigFactoryInterface $config_factory, StreamWrapperManagerInterface $stream_wrapper_manager, FileSystemInterface $file_system, TypedConfigManagerInterface $typed_configmanager) {
parent::__construct($config_factory, $typed_configmanager);
$this->streamWrapperManager = $stream_wrapper_manager;
$this->fileSystem = $file_system;
}
......@@ -48,7 +49,8 @@ class SettingsForm extends ConfigFormBase {
return new static(
$container->get('config.factory'),
$container->get('stream_wrapper_manager'),
$container->get('file_system')
$container->get('file_system'),
$container->get('config.typed')
);
}
......
......@@ -2,6 +2,7 @@ name: 'File (Field) Paths tests'
description: 'Support module for File (Field) Paths related testing.'
package: Testing
type: module
core_version_requirement: ^10.3 || ^11.0
dependencies:
- filefield_paths:filefield_paths
- drupal:file_test
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