Skip to content

Commit

Permalink
fix command setup: load fixtures is only for phpcr-odm and breaks the…
Browse files Browse the repository at this point in the history
… container without
  • Loading branch information
dbu committed Feb 16, 2024
1 parent f8b9e9b commit 44a9b48
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php

namespace Doctrine\Bundle\PHPCRBundle\Command;
namespace Doctrine\Bundle\PHPCRBundle\OptionalCommand\ODM;

use Doctrine\Bundle\PHPCRBundle\Command\DoctrineCommandHelper;
use Doctrine\Bundle\PHPCRBundle\DataFixtures\PHPCRExecutor;
use Doctrine\Bundle\PHPCRBundle\Initializer\InitializerManager;
use Doctrine\Common\DataFixtures\Loader;
Expand Down
4 changes: 0 additions & 4 deletions src/Resources/config/commands.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

<services>
<service id="Doctrine\Bundle\PHPCRBundle\Command\LoadFixtureCommand" class="Doctrine\Bundle\PHPCRBundle\Command\LoadFixtureCommand">
<argument type="service" id="doctrine_phpcr.initializer_manager"/>
<tag name="console.command"/>
</service>
<service id="Doctrine\Bundle\PHPCRBundle\Command\WorkspaceQueryCommand" class="Doctrine\Bundle\PHPCRBundle\Command\WorkspaceQueryCommand">
<tag name="console.command"/>
</service>
Expand Down
5 changes: 5 additions & 0 deletions src/Resources/config/odm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,10 @@
<argument />
</service>

<service id="Doctrine\Bundle\PHPCRBundle\Command\LoadFixtureCommand" class="Doctrine\Bundle\PHPCRBundle\OptionalCommand\ODM\LoadFixtureCommand">
<argument type="service" id="doctrine_phpcr.initializer_manager"/>
<tag name="console.command"/>
</service>

</services>
</container>

0 comments on commit 44a9b48

Please sign in to comment.