Skip to content

Commit 6a1e3e1

Browse files
authored
Merge pull request #481 from garak/fix-deprecated-ext
fix deprecated extension
2 parents bae6a58 + 39e4f0c commit 6a1e3e1

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/DependencyInjection/KnpMenuExtension.php

+1-12
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,12 @@
77
use Knp\Menu\Matcher\Voter\VoterInterface;
88
use Symfony\Component\Config\FileLocator;
99
use Symfony\Component\DependencyInjection\ContainerBuilder;
10+
use Symfony\Component\DependencyInjection\Extension\Extension;
1011
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
1112
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
12-
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
1313

1414
class KnpMenuExtension extends Extension implements PrependExtensionInterface
1515
{
16-
/**
17-
* Handles the knp_menu configuration.
18-
*
19-
* @param array $configs The configurations being loaded
20-
*/
2116
public function load(array $configs, ContainerBuilder $container): void
2217
{
2318
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../../config'));
@@ -49,17 +44,11 @@ public function load(array $configs, ContainerBuilder $container): void
4944
->addTag('knp_menu.factory_extension');
5045
}
5146

52-
/**
53-
* {@inheritdoc}
54-
*/
5547
public function getNamespace(): string
5648
{
5749
return 'http://knplabs.com/schema/dic/menu';
5850
}
5951

60-
/**
61-
* {@inheritdoc}
62-
*/
6352
public function getXsdValidationBasePath(): string
6453
{
6554
return __DIR__.'/../Resources/config/schema';

0 commit comments

Comments
 (0)