mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-08 14:28:57 +02:00
[Nostromo] Refactor some tasks, add new tests
This commit is contained in:
@@ -36,17 +36,19 @@ class CacheClearTask extends AbstractTask
|
||||
$command = $options['console'] . ' cache:clear --env=' . $options['env'] . ' ' . $options['flags'];
|
||||
|
||||
/** @var Process $process */
|
||||
$process = $this->runtime->runCommand($command);
|
||||
$process = $this->runtime->runCommand(trim($command));
|
||||
|
||||
return $process->isSuccessful();
|
||||
}
|
||||
|
||||
protected function getOptions()
|
||||
{
|
||||
$userOptions = $this->runtime->getConfigOptions('symfony', []);
|
||||
$userGlobalOptions = $this->runtime->getConfigOptions('symfony', []);
|
||||
$userEnvironmentOptions = $this->runtime->getEnvironmentConfig('symfony', []);
|
||||
$options = array_merge(
|
||||
['console' => 'bin/console', 'env' => 'dev', 'flags' => ''],
|
||||
(is_array($userOptions) ? $userOptions : []),
|
||||
(is_array($userGlobalOptions) ? $userGlobalOptions : []),
|
||||
(is_array($userEnvironmentOptions) ? $userEnvironmentOptions : []),
|
||||
$this->options
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user