File tree Expand file tree Collapse file tree 4 files changed +34
-3
lines changed Expand file tree Collapse file tree 4 files changed +34
-3
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Bundle \FrameworkBundle \CacheWarmer ;
13
13
14
14
use Psr \Container \ContainerInterface ;
15
- use Symfony \Component \ DependencyInjection \ServiceSubscriberInterface ;
15
+ use Symfony \Bundle \ FrameworkBundle \ DependencyInjection \CompatibilityServiceSubscriberInterface as ServiceSubscriberInterface ;
16
16
use Symfony \Component \HttpKernel \CacheWarmer \CacheWarmerInterface ;
17
17
use Symfony \Component \HttpKernel \CacheWarmer \WarmableInterface ;
18
18
use Symfony \Component \Routing \RouterInterface ;
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Bundle \FrameworkBundle \CacheWarmer ;
13
13
14
14
use Psr \Container \ContainerInterface ;
15
- use Symfony \Component \ DependencyInjection \ServiceSubscriberInterface ;
15
+ use Symfony \Bundle \ FrameworkBundle \ DependencyInjection \CompatibilityServiceSubscriberInterface as ServiceSubscriberInterface ;
16
16
use Symfony \Component \HttpKernel \CacheWarmer \CacheWarmerInterface ;
17
17
use Symfony \Component \HttpKernel \CacheWarmer \WarmableInterface ;
18
18
use Symfony \Contracts \Translation \TranslatorInterface ;
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the Symfony package.
5
+ *
6
+ * (c) Fabien Potencier <[email protected] >
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ namespace Symfony \Bundle \FrameworkBundle \DependencyInjection ;
13
+
14
+ use Symfony \Component \DependencyInjection \ServiceSubscriberInterface as LegacyServiceSubscriberInterface ;
15
+ use Symfony \Contracts \Service \ServiceSubscriberInterface ;
16
+
17
+ if (interface_exists (LegacyServiceSubscriberInterface::class)) {
18
+ /**
19
+ * @internal
20
+ */
21
+ interface CompatibilityServiceSubscriberInterface extends LegacyServiceSubscriberInterface
22
+ {
23
+ }
24
+ } else {
25
+ /**
26
+ * @internal
27
+ */
28
+ interface CompatibilityServiceSubscriberInterface extends ServiceSubscriberInterface
29
+ {
30
+ }
31
+ }
Original file line number Diff line number Diff line change 13
13
14
14
use Psr \Container \ContainerInterface ;
15
15
use Psr \Log \LoggerInterface ;
16
+ use Symfony \Bundle \FrameworkBundle \DependencyInjection \CompatibilityServiceSubscriberInterface as ServiceSubscriberInterface ;
16
17
use Symfony \Component \Config \Loader \LoaderInterface ;
17
18
use Symfony \Component \DependencyInjection \Config \ContainerParametersResource ;
18
19
use Symfony \Component \DependencyInjection \ContainerInterface as SymfonyContainerInterface ;
19
20
use Symfony \Component \DependencyInjection \Exception \ParameterNotFoundException ;
20
21
use Symfony \Component \DependencyInjection \Exception \RuntimeException ;
21
- use Symfony \Component \DependencyInjection \ServiceSubscriberInterface ;
22
22
use Symfony \Component \HttpKernel \CacheWarmer \WarmableInterface ;
23
23
use Symfony \Component \Routing \RequestContext ;
24
24
use Symfony \Component \Routing \RouteCollection ;
You can’t perform that action at this time.
0 commit comments