Permalink
Browse files

"Using $this when not in object context"

  • Loading branch information...
1 parent 513903f commit d60e442ba3aa4e1ac427f7fabffe74b927f870a1 @frosas frosas committed Jul 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Command/DoctrineCommand.php
@@ -40,13 +40,13 @@ public static function configureMigrations(ContainerInterface $container, Config
$configuration->setName($container->getParameter('doctrine_migrations.name'));
$configuration->setMigrationsTableName($container->getParameter('doctrine_migrations.table_name'));
- $this->injectContainerToMigrations($container, $configuration->getMigrations());
+ self::injectContainerToMigrations($container, $configuration->getMigrations());
}
/**
* Injects the container to migrations aware of it
*/
- private function injectContainerToMigrations(ContainerInterface $container, array $versions)
+ private static function injectContainerToMigrations(ContainerInterface $container, array $versions)
{
foreach ($versions as $version) {
$migration = $version->getMigration();

0 comments on commit d60e442

Please sign in to comment.