Skip to content

Commit

Permalink
fixed compatibility issue with symfony 3
Browse files Browse the repository at this point in the history
  • Loading branch information
koertho committed Jul 4, 2023
1 parent 4959cc9 commit cb226ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to this project will be documented in this file.

## [2.228.1] - 2023-07-04
- Fixed: compatibility issue with symfony 3

## [2.228.0] - 2023-05-22
- Added: absolute url option to RequestUtil::generateBackendRoute() ([#65])

Expand Down
8 changes: 6 additions & 2 deletions src/Util/AbstractServiceSubscriber.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/*
* Copyright (c) 2022 Heimrich & Hannot GmbH
* Copyright (c) 2023 Heimrich & Hannot GmbH
*
* @license LGPL-3.0-or-later
*/
Expand All @@ -11,7 +11,11 @@
use Symfony\Component\DependencyInjection\ServiceSubscriberInterface as LegacyServiceSubscriberInterface;
use Symfony\Contracts\Service\ServiceSubscriberInterface;

if (interface_exists(ServiceSubscriberInterface::class)) {
if (interface_exists(ServiceSubscriberInterface::class) && interface_exists(LegacyServiceSubscriberInterface::class)) {
abstract class AbstractServiceSubscriber implements ServiceSubscriberInterface, LegacyServiceSubscriberInterface
{
}
} elseif (interface_exists(ServiceSubscriberInterface::class)) {
abstract class AbstractServiceSubscriber implements ServiceSubscriberInterface
{
}
Expand Down

0 comments on commit cb226ef

Please sign in to comment.