@@ -40,10 +40,10 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | $container->setAlias('task.lock.storage', $configuration->getLockingStorageId($config['locking']['storage'])); |
| 42 | 42 | foreach (array_keys($config['locking']['storages']) as $key) { |
| 43 | - $container->setParameter('task.lock.storages.' . $key, $config['locking']['storages'][$key]); |
|
| 43 | + $container->setParameter('task.lock.storages.'.$key, $config['locking']['storages'][$key]); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 46 | + $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 47 | 47 | $loader->load(sprintf('storage/%s.xml', $config['storage'])); |
| 48 | 48 | $loader->load('task_event_listener.xml'); |
| 49 | 49 | $loader->load('scheduler.xml'); |
@@ -106,15 +106,15 @@ discard block |
||
| 106 | 106 | */ |
| 107 | 107 | private function loadExecutorComponent(array $config, ContainerBuilder $container, LoaderInterface $loader) |
| 108 | 108 | { |
| 109 | - $loader->load('executor/' . $config['type'] . '.xml'); |
|
| 110 | - $container->setAlias('task.executor', 'task.executor.' . $config['type']); |
|
| 109 | + $loader->load('executor/'.$config['type'].'.xml'); |
|
| 110 | + $container->setAlias('task.executor', 'task.executor.'.$config['type']); |
|
| 111 | 111 | |
| 112 | 112 | if (!array_key_exists($config['type'], $config)) { |
| 113 | 113 | return; |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | foreach ($config[$config['type']] as $key => $value) { |
| 117 | - $container->setParameter('task.executor.' . $key, $value); |
|
| 117 | + $container->setParameter('task.executor.'.$key, $value); |
|
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | if (!file_exists($container->getParameter('task.executor.console_path'))) { |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | */ |
| 151 | 151 | public function getConfiguration(array $config, ContainerBuilder $container) |
| 152 | 152 | { |
| 153 | - $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 153 | + $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 154 | 154 | $loader->load('locking/storages.xml'); |
| 155 | 155 | |
| 156 | 156 | return new Configuration($this->getLockingStorageAliases($container)); |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | public function execute(TaskExecutionInterface $execution) |
| 47 | 47 | { |
| 48 | 48 | $process = ProcessBuilder::create( |
| 49 | - [$this->consolePath, 'task:execute', $execution->getUuid(), '-e ' . $this->environment] |
|
| 49 | + [$this->consolePath, 'task:execute', $execution->getUuid(), '-e '.$this->environment] |
|
| 50 | 50 | )->getProcess(); |
| 51 | 51 | |
| 52 | 52 | $process->run(); |