Skip to content

Commit

Permalink
Remove the auto1.route_describers.route_metadata definition (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
milan-miscevic authored Feb 1, 2022
1 parent 0423171 commit dadc052
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DependencyInjection/Auto1ServiceAPIHandlerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Auto1\ServiceAPIHandlerBundle\DependencyInjection;

use Nelmio\ApiDocBundle\NelmioApiDocBundle;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
Expand All @@ -24,5 +25,9 @@ public function load(array $configs, ContainerBuilder $container)

//Load config files
$loader->load('services.yml');

if (!class_exists(NelmioApiDocBundle::class)) {
$container->removeDefinition('auto1.route_describers.route_metadata');
}
}
}

0 comments on commit dadc052

Please sign in to comment.