Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
digit-joinup-reference
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ec-europa
digit-joinup-reference
Commits
1d0ee343
Commit
1d0ee343
authored
6 months ago
by
Hervé Donner
Browse files
Options
Downloads
Patches
Plain Diff
ISAICP-8958: Update honeypot patch.
parent
8f96894b
No related branches found
No related tags found
1 merge request
!191
Release/v1.113.1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/patch/php/drupal/honeypot/3481399.patch
+51
-2
51 additions, 2 deletions
resources/patch/php/drupal/honeypot/3481399.patch
with
51 additions
and
2 deletions
resources/patch/php/drupal/honeypot/3481399.patch
+
51
−
2
View file @
1d0ee343
...
...
@@ -9,10 +9,59 @@ index 331a8c2..bd80d0d 100644
- arguments: ['@current_user', '@module_handler', '@config.factory', '@keyvalue.expirable', '@page_cache_kill_switch', '@database', '@logger.factory', '@datetime.time', '@string_translation', '@cache.default', '@request_stack']
+ arguments: ['@current_user', '@module_handler', '@config.factory', '@keyvalue.expirable', '@page_cache_kill_switch', '@database', '@logger.factory', '@datetime.time', '@string_translation', '@request_stack']
diff --git a/src/Form/HoneypotSettingsForm.php b/src/Form/HoneypotSettingsForm.php
index cbf64b7..
e4af9e4
100644
index cbf64b7..
2116d72
100644
--- a/src/Form/HoneypotSettingsForm.php
+++ b/src/Form/HoneypotSettingsForm.php
@@ -295,12 +295,7 @@
class HoneypotSettingsForm extends ConfigFormBase {
@@ -3,7 +3,6 @@
namespace Drupal\honeypot\Form;
use Drupal\Component\Utility\Html;
-use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Config\TypedConfigManagerInterface;
use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
@@ -40,13 +39,6 @@
class HoneypotSettingsForm extends ConfigFormBase {
*/
protected $entityTypeBundleInfo;
- /**
- * A cache backend interface.
- *
- * @var \Drupal\Core\Cache\CacheBackendInterface
- */
- protected $cache;
-
/**
* Constructs a settings controller.
*
@@ -60,15 +52,12 @@
class HoneypotSettingsForm extends ConfigFormBase {
* The entity type manager.
* @param \Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info
* The entity type bundle info service.
- * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
- * The cache backend interface.
*/
- public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typedConfigManager, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, CacheBackendInterface $cache_backend) {
+ public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typedConfigManager, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info) {
parent::__construct($config_factory, $typedConfigManager);
$this->moduleHandler = $module_handler;
$this->entityTypeManager = $entity_type_manager;
$this->entityTypeBundleInfo = $entity_type_bundle_info;
- $this->cache = $cache_backend;
}
/**
@@ -80,8 +69,7 @@
class HoneypotSettingsForm extends ConfigFormBase {
$container->get('config.typed'),
$container->get('module_handler'),
$container->get('entity_type.manager'),
- $container->get('entity_type.bundle.info'),
- $container->get('cache.default')
+ $container->get('entity_type.bundle.info')
);
}
@@ -295,12 +283,7 @@
class HoneypotSettingsForm extends ConfigFormBase {
}
// Save the honeypot forms from $form_state into a 'form_settings' array.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment