mirror of
https://github.com/jbcr/ezmigrationbundle.git
synced 2026-04-24 08:58:08 +02:00
24 lines
547 B
PHP
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;
|
|
}
|
|
}
|