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 ;
1817use Symfony \Component \DependencyInjection \ContainerInterface ;
1918use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
2019
2120/**
2221 * @author Matthew Fitzgerald <matthewfitz@gmail.com>
2322 */
24- abstract class AntiMattrCommand extends ContainerAwareCommand
23+ final class CommandHelper
2524{
25+ /**
26+ * configureMigrations
27+ *
28+ * @param ContainerInterface $container
29+ * @param Configuration $configuration
30+ */
2631 public static function configureMigrations (ContainerInterface $ container , Configuration $ configuration )
2732 {
2833 $ dir = $ container ->getParameter ('mongo_db_migrations.dir_name ' );
@@ -42,8 +47,8 @@ public static function configureMigrations(ContainerInterface $container, Config
4247 }
4348
4449 /**
45- * @param Symfony\Bundle\FrameworkBundle\Console\ Application
46- * @param string $dmName
50+ * @param Application $application
51+ * @param string $dmName
4752 */
4853 public static function setApplicationDocumentManager (Application $ application , $ dmName )
4954 {
@@ -58,7 +63,12 @@ public static function setApplicationDocumentManager(Application $application, $
5863 }
5964
6065 /**
66+ * injectContainerToMigrations
67+ *
6168 * Injects the container to migrations aware of it.
69+ *
70+ * @param ContainerInterface $container
71+ * @param array $versions
6272 */
6373 private static function injectContainerToMigrations (ContainerInterface $ container , array $ versions )
6474 {
0 commit comments