コード例 #1
0
ファイル: ShellJobFactory.php プロジェクト: dpk125/JobQueue
 /**
  * {@inheritdoc}
  */
 public function create(JobConfigurationInterface $configuration)
 {
     return new ShellJob($configuration->getParameter('shell_command'), $this->reportManager);
 }
コード例 #2
0
ファイル: PhpJobFactory.php プロジェクト: dpk125/JobQueue
 /**
  * {@inheritdoc}
  */
 public function create(JobConfigurationInterface $configuration)
 {
     return new PhpJob($configuration->getParameter('php_script'), $this->reportManager);
 }
コード例 #3
0
ファイル: CommandJobFactory.php プロジェクト: dpk125/JobQueue
 /**
  * {@inheritdoc}
  */
 public function create(JobConfigurationInterface $configuration)
 {
     $command = $this->commandBuilder->build($configuration->getParameter('symfony_command'));
     return new ShellJob($command, $this->reportManager);
 }
コード例 #4
0
ファイル: ServiceJobFactory.php プロジェクト: dpk125/JobQueue
 /**
  * {@inheritdoc}
  */
 public function create(JobConfigurationInterface $configuration)
 {
     return new ServiceJob($this->container, $configuration->getParameter('symfony_service_id'), $configuration->getParameter('symfony_service_method'));
 }