Skip to content
Snippets Groups Projects
Commit d7f40c8c authored by Kristiaan Van den Eynde's avatar Kristiaan Van den Eynde
Browse files

Issue #3455789 by claudiu.cristea, kristiaanvandeneynde: Bump...

Issue #3455789 by claudiu.cristea, kristiaanvandeneynde: Bump flexible_permissions module version to v2
parent bca43041
Branches
Tags
1 merge request!231Draft: #3519311 Provide a canonical link to entity using a Views field
Pipeline #288180 canceled
# Group-specific terminology. # Group-specific terminology.
gnode gnode
variationcache
grfd grfd
gcfd gcfd
gids gids
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"require": { "require": {
"drupal/core": "^10.3 || ^11", "drupal/core": "^10.3 || ^11",
"drupal/entity": "^1.2", "drupal/entity": "^1.2",
"drupal/flexible_permissions": "^1.0" "drupal/flexible_permissions": "^2.0"
}, },
"require-dev": { "require-dev": {
"jangregor/phpstan-prophecy": "^1.0" "jangregor/phpstan-prophecy": "^1.0"
......
...@@ -23,7 +23,6 @@ class GroupNodeConfigTest extends EntityKernelTestBase { ...@@ -23,7 +23,6 @@ class GroupNodeConfigTest extends EntityKernelTestBase {
'group', 'group',
'node', 'node',
'options', 'options',
'variationcache',
'views', 'views',
]; ];
......
...@@ -20,14 +20,6 @@ class GroupServiceProvider extends ServiceProviderBase { ...@@ -20,14 +20,6 @@ class GroupServiceProvider extends ServiceProviderBase {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function alter(ContainerBuilder $container) { public function alter(ContainerBuilder $container) {
// Ensures you can update to enable VariationCache without the container
// choking on the variation_cache_factory service no longer being there.
if (!$container->hasDefinition('variation_cache_factory')) {
$definition = new Definition('\Drupal\group\VariationCacheFactoryUpdateFix');
$definition->setPublic(TRUE);
$container->setDefinition('variation_cache_factory', $definition);
}
// Automatically create missing handler services for group relations and // Automatically create missing handler services for group relations and
// add important attributes to those already declared. // add important attributes to those already declared.
$modules = $container->getParameter('container.modules'); $modules = $container->getParameter('container.modules');
......
<?php
namespace Drupal\group;
/**
* Throws an exception when the VariationCache module is not installed.
*/
class VariationCacheFactoryUpdateFix {
/**
* {@inheritdoc}
*/
public function get($bin) {
throw new \Exception('The "VariationCache" module is not installed. Please run the update script to install it properly.');
}
}
...@@ -22,7 +22,6 @@ class GroupConfigTest extends EntityKernelTestBase { ...@@ -22,7 +22,6 @@ class GroupConfigTest extends EntityKernelTestBase {
'flexible_permissions', 'flexible_permissions',
'group', 'group',
'options', 'options',
'variationcache',
'views', 'views',
]; ];
......
...@@ -18,7 +18,7 @@ abstract class GroupKernelTestBase extends EntityKernelTestBase { ...@@ -18,7 +18,7 @@ abstract class GroupKernelTestBase extends EntityKernelTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected static $modules = ['entity', 'flexible_permissions', 'group', 'options', 'variationcache']; protected static $modules = ['entity', 'flexible_permissions', 'group', 'options'];
/** /**
* The group relation type manager. * The group relation type manager.
......
...@@ -33,7 +33,6 @@ abstract class GroupViewsKernelTestBase extends ViewsKernelTestBase { ...@@ -33,7 +33,6 @@ abstract class GroupViewsKernelTestBase extends ViewsKernelTestBase {
'group_test_views', 'group_test_views',
'options', 'options',
'text', 'text',
'variationcache',
]; ];
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment