1414use AntiMattr \MongoDB \Migrations \Configuration \Configuration ;
1515use Doctrine \ODM \MongoDB \Tools \Console \Helper \DocumentManagerHelper ;
1616use Symfony \Bundle \FrameworkBundle \Console \Application ;
17+ use Symfony \Bundle \FrameworkBundle \Command \ContainerAwareCommand ;
1718use Symfony \Component \DependencyInjection \ContainerInterface ;
1819use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
1920
2021/**
2122 * @author Matthew Fitzgerald <matthewfitz@gmail.com>
2223 */
23- final class CommandHelper
24+ abstract class AntiMattrCommand extends ContainerAwareCommand
2425{
25- /**
26- * configureMigrations
27- *
28- * @param ContainerInterface $container
29- * @param Configuration $configuration
30- */
3126 public static function configureMigrations (ContainerInterface $ container , Configuration $ configuration )
3227 {
3328 $ dir = $ container ->getParameter ('mongo_db_migrations.dir_name ' );
@@ -47,8 +42,8 @@ public static function configureMigrations(ContainerInterface $container, Config
4742 }
4843
4944 /**
50- * @param Application $application
51- * @param string $dmName
45+ * @param Symfony\Bundle\FrameworkBundle\Console\ Application
46+ * @param string $dmName
5247 */
5348 public static function setApplicationDocumentManager (Application $ application , $ dmName )
5449 {
@@ -63,12 +58,7 @@ public static function setApplicationDocumentManager(Application $application, $
6358 }
6459
6560 /**
66- * injectContainerToMigrations
67- *
6861 * Injects the container to migrations aware of it.
69- *
70- * @param ContainerInterface $container
71- * @param array $versions
7262 */
7363 private static function injectContainerToMigrations (ContainerInterface $ container , array $ versions )
7464 {
0 commit comments