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