Skip to content

Commit b3ca081

Browse files
authored
correct a typo in a namespace loading
the correct namespace is not `Symfony\Component\HttpKernel\DependencyInjection\Extension` but `Symfony\Component\DependencyInjection\Extension\Extension`. The mistake is present on all versions of the doc I checked, so I propose the correction on the oldest LTS but ie the 4.2 also have the typo. If using the typo, the code still works because `Symfony\Component\HttpKernel\DependencyInjection\Extension` extends `Symfony\Component\DependencyInjection\Extension\Extension`
1 parent 583d2ef commit b3ca081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundles/extension.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ but usually you would simply extend the
3535
// src/Acme/HelloBundle/DependencyInjection/AcmeHelloExtension.php
3636
namespace Acme\HelloBundle\DependencyInjection;
3737

38-
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
3938
use Symfony\Component\DependencyInjection\ContainerBuilder;
39+
use Symfony\Component\DependencyInjection\Extension\Extension;
4040

4141
class AcmeHelloExtension extends Extension
4242
{

0 commit comments

Comments
 (0)