Skip to content

Commit

Permalink
Merge branch 'b-7.0.x-fix_activation_dependency-OXDEV-7659' into b-7.…
Browse files Browse the repository at this point in the history
…0.x-prototype-OXDEV-7325
  • Loading branch information
MarcelOxid committed Dec 7, 2023
2 parents 16c6b6e + 6a8fd41 commit b38427e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 71 deletions.
9 changes: 5 additions & 4 deletions services.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
imports:
- { resource: src/Setting/services.yaml }
- { resource: src/Shared/services.yaml }

parameters:
oxidesales.graphqlconfigurationaccess.depends_on_modules: [ 'oe_graphql_base' ]
Expand All @@ -19,11 +18,13 @@ services:
class: OxidEsales\GraphQL\ConfigurationAccess\Shared\Service\PermissionProvider
tags: [ 'graphql_permission_provider' ]

OxidEsales\GraphQL\ConfigurationAccess\Shared\Service\Authorization:
class: OxidEsales\GraphQL\ConfigurationAccess\Shared\Service\Authorization
OxidEsales\GraphQL\ConfigurationAccess\DependencyCheckTrigger:
alias: OxidEsales\GraphQL\Base\Framework\GraphQLQueryHandler
public: true

OxidEsales\GraphQL\ConfigurationAccess\Shared\Subscriber\BeforeModuleDeactivation:
class: OxidEsales\GraphQL\ConfigurationAccess\Shared\Subscriber\BeforeModuleDeactivation
arguments: [ '%oxidesales.graphqlconfigurationaccess.depends_on_modules%' ]
arguments:
$dependencies: '%oxidesales.graphqlconfigurationaccess.depends_on_modules%'
tags: [ 'kernel.event_subscriber' ]
public: true
20 changes: 0 additions & 20 deletions src/Shared/Exception/GraphQLServiceNotFound.php

This file was deleted.

34 changes: 0 additions & 34 deletions src/Shared/Service/Authorization.php

This file was deleted.

8 changes: 3 additions & 5 deletions src/Shared/Subscriber/BeforeModuleDeactivation.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@

final class BeforeModuleDeactivation implements EventSubscriberInterface
{
private array $dependencies;

public function __construct(array $dependencies)
{
$this->dependencies = $dependencies;
public function __construct(
private array $dependencies
) {
}

public function handle(OriginalEvent $event): OriginalEvent
Expand Down
8 changes: 0 additions & 8 deletions src/Shared/services.yaml

This file was deleted.

0 comments on commit b38427e

Please sign in to comment.