Skip to content

Commit 585ad29

Browse files
authored
Merge pull request #454 from php-http/use-di-from-component
use extension class from di component instead of the kernel
2 parents c0bdc01 + 2905f7e commit 585ad29

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee
44

55
# Version 1
66

7+
# unreleased
8+
9+
- Fixed extension to depend on the DependencyInjection component rather than the HttpKernel.
10+
711
# 1.33.0 - 2024-02-27
812

913
- Support php-http/cache-plugin 2.0 and bump minimal version to 1.7 by defaulting the stream factory for cache to `httplug.psr17_stream_factory` (#448).

src/DependencyInjection/HttplugExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
use Symfony\Component\DependencyInjection\ChildDefinition;
3232
use Symfony\Component\DependencyInjection\ContainerBuilder;
3333
use Symfony\Component\DependencyInjection\Definition;
34+
use Symfony\Component\DependencyInjection\Extension\Extension;
3435
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
3536
use Symfony\Component\DependencyInjection\Reference;
36-
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
3737
use Symfony\Component\HttpKernel\Kernel;
3838
use Twig\Environment as TwigEnvironment;
3939

0 commit comments

Comments
 (0)