for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kaliop\eZWorkflowEngineBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
/**
* Base command class that all migration commands extend from.
*/
abstract class AbstractCommand extends ContainerAwareCommand
{
* @var \Kaliop\eZWorkflowEngineBundle\Core\WorkflowServiceFacade
private $workflowService;
* @return \Kaliop\eZWorkflowEngineBundle\Core\WorkflowServiceFacade
public function getWorkflowService()
if (!$this->workflowService) {
$this->workflowService = $this->getContainer()->get('ez_workflowengine_bundle.workflow_service');
}
return $this->workflowService;