Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

Commit

Permalink
Merge pull request #364 from Jean85/fix-command-deprecations-with-xml
Browse files Browse the repository at this point in the history
Fix command deprecations with XML
  • Loading branch information
alexislefebvre committed Jan 10, 2018
2 parents ee74117 + 46a40bf commit 297c33e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions DependencyInjection/LiipFunctionalTestExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function load(array $configs, ContainerBuilder $container)
$config = $this->processConfiguration(new Configuration(), $configs);

$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('commands.xml');
$loader->load('functional_test.xml');
if (interface_exists('Symfony\Component\Validator\Validator\ValidatorInterface')) {
$loader->load('validator.xml');
Expand Down
14 changes: 14 additions & 0 deletions Resources/config/commands.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

<services>
<service id="Liip\FunctionalTestBundle\Command\RunParatestCommand" class="Liip\FunctionalTestBundle\Command\RunParatestCommand">
<tag name="console.command" />
</service>
<service id="Liip\FunctionalTestBundle\Command\TestCommand" class="Liip\FunctionalTestBundle\Command\TestCommand">
<tag name="console.command" />
</service>
</services>
</container>

0 comments on commit 297c33e

Please sign in to comment.