Skip to content

Commit

Permalink
Update autowiring to ensure currentGroupService exists during install…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
denis-getopensocial committed Nov 26, 2024
1 parent e62b1d6 commit 6da5d3b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,5 @@ services:
- { name: cache.context }

Drupal\social_group\CurrentGroupService:
class: Drupal\social_group\CurrentGroupService
social_group.current_group_service: '@Drupal\social_group\CurrentGroupService'
autowire: true
social_group.current_group: '@Drupal\social_group\CurrentGroupService'
7 changes: 4 additions & 3 deletions modules/social_features/social_post/social_post.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ core_version_requirement: ^9 || ^10
dependencies:
- drupal:block
- drupal:comment
- social:dropdown
- drupal:field
- group:group
- drupal:options
- social:social_comment
- drupal:text
- drupal:user
- drupal:views
- group:group
- social:activity_creator
- social:dropdown
- social:social_comment
- social:social_group
package: Social
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public static function create(ContainerInterface $container, array $configuratio
$container->get('form_builder'),
$container->get('module_handler'),
$container->get('current_route_match'),
$container->get('social_group.current_group'),
$container->get(CurrentGroupService::class),
);
}

Expand Down
2 changes: 1 addition & 1 deletion social.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ dependencies:
- color:color
- improved_theme_settings:improved_theme_settings
# Open Social
- social:social_group
- social:social_activity
- social:social_core
- social:social_group
- social:social_swiftmail
- social:social_user

Expand Down

0 comments on commit 6da5d3b

Please sign in to comment.