1919
2020namespace DoctrineDataFixtureModule \Command ;
2121
22- use Symfony \Component \Console \Command \Command ,
23- Symfony \Component \Console \Input \InputInterface ,
24- Symfony \Component \Console \Output \OutputInterface ,
25- Symfony \Component \Console \Input \InputArgument ,
26- Symfony \Component \Console \Input \InputOption ,
27- Doctrine \ORM \Tools \SchemaTool ,
28- Doctrine \DBAL \Migrations \Configuration \Configuration ;
29-
22+ use Symfony \Component \Console \Command \Command ;
23+ use Symfony \Component \Console \Input \InputInterface ;
24+ use Symfony \Component \Console \Output \OutputInterface ;
25+ use Symfony \Component \Console \Input \InputArgument ;
26+ use Symfony \Component \Console \Input \InputOption ;
27+ use Doctrine \ORM \Tools \SchemaTool ;
28+ use Doctrine \DBAL \Migrations \Configuration \Configuration ;
3029use Doctrine \Common \DataFixtures \Loader ;
3130use Doctrine \Common \DataFixtures \Executor \ORMExecutor ;
3231use Doctrine \Common \DataFixtures \Purger \ORMPurger ;
32+
3333/**
3434 * Command for generate migration classes by comparing your current database schema
3535 * to your mapping information.
@@ -53,7 +53,8 @@ protected function configure()
5353
5454 $ this ->setName ('data-fixture:import ' )
5555 ->setDescription ('Import Data Fixtures ' )
56- ->setHelp (<<<EOT
56+ ->setHelp (
57+ <<<EOT
5758The import command Imports data-fixtures
5859EOT
5960 )
@@ -66,19 +67,19 @@ public function execute(InputInterface $input, OutputInterface $output)
6667 $ loader = new Loader ();
6768 $ purger = new ORMPurger ();
6869
69- if ($ input ->getOption ('purge-with-truncate ' )) {
70+ if ($ input ->getOption ('purge-with-truncate ' )) {
7071 $ purger ->setPurgeMode (self ::PURGE_MODE_TRUNCATE );
7172 }
7273
7374 $ executor = new ORMExecutor ($ this ->em , $ purger );
7475
75- foreach ($ this ->paths as $ key => $ value ) {
76+ foreach ($ this ->paths as $ key => $ value ) {
7677 $ loader ->loadFromDirectory ($ value );
7778 }
7879 $ executor ->execute ($ loader ->getFixtures (), $ input ->getOption ('append ' ));
7980 }
8081
81- public function setPath ($ paths )
82+ public function setPath ($ paths )
8283 {
8384 $ this ->paths =$ paths ;
8485 }
0 commit comments