Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jsonapi_extras
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
jsonapi_extras
Commits
eedf0444
Commit
eedf0444
authored
1 year ago
by
Mateu Aguiló Bosch
Committed by
Björn Brala
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: support deprecated PHP vertions
parent
b49b17cc
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!38
Issue #3387544: Introduce opt-in configuration integrity validation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/EventSubscriber/FieldConfigIntegrityValidation.php
+39
-4
39 additions, 4 deletions
src/EventSubscriber/FieldConfigIntegrityValidation.php
with
39 additions
and
4 deletions
src/EventSubscriber/FieldConfigIntegrityValidation.php
+
39
−
4
View file @
eedf0444
...
@@ -23,11 +23,46 @@ use Drupal\jsonapi_extras\ResourceType\NullJsonapiResourceConfig;
...
@@ -23,11 +23,46 @@ use Drupal\jsonapi_extras\ResourceType\NullJsonapiResourceConfig;
*/
*/
class
FieldConfigIntegrityValidation
extends
ConfigImportValidateEventSubscriberBase
{
class
FieldConfigIntegrityValidation
extends
ConfigImportValidateEventSubscriberBase
{
/**
* The configuration manager.
*
* @var \Drupal\Core\Config\ConfigManagerInterface
*/
private
ConfigManagerInterface
$configManager
;
/**
* The entity type manager.
*
* @var \Drupal\Core\Entity\EntityTypeManagerInterface
*/
private
EntityTypeManagerInterface
$entityTypeManager
;
/**
* The resource type repository.
*
* @var \Drupal\jsonapi_extras\ResourceType\ConfigurableResourceTypeRepository
*/
private
ConfigurableResourceTypeRepository
$resourceTypeRepository
;
/**
* Creates a new validator.
*
* @param \Drupal\Core\Config\ConfigManagerInterface $config_manager
* The configuration manager.
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
* The entity type manager.
* @param \Drupal\jsonapi_extras\ResourceType\ConfigurableResourceTypeRepository $resource_type_repository
* The resource type repository
*/
public
function
__construct
(
public
function
__construct
(
private
ConfigManagerInterface
$configManager
,
ConfigManagerInterface
$config_manager
,
private
EntityTypeManagerInterface
$entityTypeManager
,
EntityTypeManagerInterface
$entity_type_manager
,
private
ConfigurableResourceTypeRepository
$resourceTypeRepository
,
ConfigurableResourceTypeRepository
$resource_type_repository
,
)
{}
)
{
$this
->
configManager
=
$config_manager
;
$this
->
entityTypeManager
=
$entity_type_manager
;
$this
->
resourceTypeRepository
=
$resource_type_repository
;
}
/**
/**
* @inheritDoc
* @inheritDoc
...
...
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