File tree Expand file tree Collapse file tree 9 files changed +68
-6
lines changed Expand file tree Collapse file tree 9 files changed +68
-6
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 <fabien@symfony.com>
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
67E6
span>\Routing \RouteCollection ;
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Bundle \TwigBundle \CacheWarmer ;
13
13
14
14
use Psr \Container \ContainerInterface ;
15
- use Symfony \Component \ DependencyInjection \ServiceSubscriberInterface ;
15
+ use Symfony \Bundle \ TwigBundle \ DependencyInjection \CompatibilityServiceSubscriberInterface as ServiceSubscriberInterface ;
16
16
use Symfony \Component \HttpKernel \CacheWarmer \CacheWarmerInterface ;
17
17
use Twig \Environment ;
18
18
use Twig \Error \Error ;
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 <fabien@symfony.com>
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 \TwigBundle \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 PHPUnit \Framework \TestCase ;
15
15
use Symfony \Component \Config \Resource \ReflectionClassResource ;
16
- use Symfony \Component \DependencyInjection \ServiceSubscriberInterface ;
17
16
use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
18
17
use Symfony \Component \Messenger \Handler \MessageSubscriberInterface ;
18
+ use Symfony \Contracts \Service \ServiceSubscriberInterface ;
19
19
20
20
class ReflectionClassResourceTest extends TestCase
21
21
{
Original file line number Diff line number Diff line change 21
21
"symfony/polyfill-ctype" : " ~1.8"
22
22
},
23
23
"require-dev" : {
24
- "symfony/dependency-injection" : " ^4.4|^5.0" ,
25
24
"symfony/event-dispatcher" : " ^4.4|^5.0" ,
26
25
"symfony/finder" : " ^4.4|^5.0" ,
27
26
"symfony/messenger" : " ^4.4|^5.0" ,
27
+ "symfony/service-contracts" : " ^1.1" ,
28
28
"symfony/yaml" : " ^4.4|^5.0"
29
29
},
30
30
"conflict" : {
You can’t perform that action at this time.
0 commit comments