Skip to content

Commit

Permalink
Merge pull request #481 from garak/fix-deprecated-ext
Browse files Browse the repository at this point in the history
fix deprecated extension
  • Loading branch information
garak authored Jun 3, 2024
2 parents bae6a58 + 39e4f0c commit 6a1e3e1
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 6a1e3e1

Please sign in to comment.