Files
ezmigrationbundle/Command/AbstractCommand.php
T

24 lines
547 B
PHP

<?php
namespace Kaliop\eZMigrationBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
/**
* Base command class that all migration commands extend from.
*/
abstract class AbstractCommand extends ContainerAwareCommand
{
private $migrationService;
public function getMigrationService()
{
if (!$this->migrationService)
{
$this->migrationService = $this->getContainer()->get('ez_migration_bundle.migration_service');
}
return $this->migrationService;
}
}