Skip to content

Commit

Permalink
fix deprecated extension
Browse files Browse the repository at this point in the history
  • Loading branch information
garak committed Jun 2, 2024
1 parent 13426db commit 39e4f0c
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/DependencyInjection/KnpMenuExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,12 @@
use Knp\Menu\Matcher\Voter\VoterInterface;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;

class KnpMenuExtension extends Extension implements PrependExtensionInterface
{
/**
* Handles the knp_menu configuration.
*
* @param array $configs The configurations being loaded
*/
public function load(array $configs, ContainerBuilder $container): void
{
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../../config'));
Expand Down Expand Up @@ -49,17 +44,11 @@ public function load(array $configs, ContainerBuilder $container): void
->addTag('knp_menu.factory_extension');
}

/**
* {@inheritdoc}
*/
public function getNamespace(): string
{
return 'http://knplabs.com/schema/dic/menu';
}

/**
* {@inheritdoc}
*/
public function getXsdValidationBasePath(): string
{
return __DIR__.'/../Resources/config/schema';
Expand Down

0 comments on commit 39e4f0c

Please sign in to comment.