Permalink
Browse files

Remove DoctrineFixturesBundle dependency in load command

  • Loading branch information...
1 parent 0a71f2c commit 027379a8e2ed24b81a234590b91d572565eaeba1 @jmikola jmikola committed Feb 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Command/LoadDataFixturesDoctrineODMCommand.php
@@ -14,10 +14,10 @@
namespace Doctrine\Bundle\MongoDBBundle\Command;
-use Doctrine\Bundle\FixturesBundle\Common\DataFixtures\Loader as DataFixturesLoader;
use Doctrine\Common\DataFixtures\Executor\MongoDBExecutor;
use Doctrine\Common\DataFixtures\Purger\MongoDBPurger;
use InvalidArgumentException;
+use Symfony\Bridge\Doctrine\DataFixtures\ContainerAwareLoader;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
@@ -67,7 +67,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
}
}
- $loader = new DataFixturesLoader($this->getContainer());
+ $loader = new ContainerAwareLoader($this->getContainer());
foreach ($paths as $path) {
if (is_dir($path)) {
$loader->loadFromDirectory($path);

0 comments on commit 027379a

Please sign in to comment.