mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-05 23:43:15 +02:00
[Nostromo] Tweak Tasks
This commit is contained in:
parent
8d9d9addcc
commit
0bb6944c42
|
@ -58,6 +58,9 @@ abstract class AbstractTask
|
|||
*/
|
||||
public function setOptions($options = [])
|
||||
{
|
||||
if (!is_array($options)) {
|
||||
$options = [];
|
||||
}
|
||||
$this->options = $options;
|
||||
return $this;
|
||||
}
|
||||
|
|
|
@ -35,9 +35,10 @@ class GenerateAutoloadTask extends AbstractTask
|
|||
|
||||
protected function getOptions()
|
||||
{
|
||||
$userOptions = $this->runtime->getConfigOptions('composer', []);
|
||||
$options = array_merge(
|
||||
['path' => 'composer', 'flags' => '--optimize'],
|
||||
$this->runtime->getConfigOptions('composer', []),
|
||||
(is_array($userOptions) ? $userOptions : []),
|
||||
$this->options
|
||||
);
|
||||
|
||||
|
|
|
@ -35,9 +35,10 @@ class InstallTask extends AbstractTask
|
|||
|
||||
protected function getOptions()
|
||||
{
|
||||
$userOptions = $this->runtime->getConfigOptions('composer', []);
|
||||
$options = array_merge(
|
||||
['path' => 'composer', 'flags' => '--dev'],
|
||||
$this->runtime->getConfigOptions('composer', []),
|
||||
(is_array($userOptions) ? $userOptions : []),
|
||||
$this->options
|
||||
);
|
||||
|
||||
|
|
|
@ -43,9 +43,10 @@ class AsseticDumpTask extends AbstractTask
|
|||
|
||||
protected function getOptions()
|
||||
{
|
||||
$userOptions = $this->runtime->getConfigOptions('symfony', []);
|
||||
$options = array_merge(
|
||||
['path' => 'bin/console', 'env' => 'dev', 'flags' => ''],
|
||||
$this->runtime->getConfigOptions('symfony', []),
|
||||
(is_array($userOptions) ? $userOptions : []),
|
||||
$this->options
|
||||
);
|
||||
|
||||
|
|
|
@ -43,9 +43,10 @@ class AssetsInstallTask extends AbstractTask
|
|||
|
||||
protected function getOptions()
|
||||
{
|
||||
$userOptions = $this->runtime->getConfigOptions('symfony', []);
|
||||
$options = array_merge(
|
||||
['path' => 'bin/console', 'env' => 'dev', 'target' => 'web', 'flags' => '--symlink --relative'],
|
||||
$this->runtime->getConfigOptions('symfony', []),
|
||||
(is_array($userOptions) ? $userOptions : []),
|
||||
$this->options
|
||||
);
|
||||
|
||||
|
|
|
@ -43,9 +43,10 @@ class CacheClearTask extends AbstractTask
|
|||
|
||||
protected function getOptions()
|
||||
{
|
||||
$userOptions = $this->runtime->getConfigOptions('symfony', []);
|
||||
$options = array_merge(
|
||||
['path' => 'bin/console', 'env' => 'dev', 'flags' => ''],
|
||||
$this->runtime->getConfigOptions('symfony', []),
|
||||
(is_array($userOptions) ? $userOptions : []),
|
||||
$this->options
|
||||
);
|
||||
|
||||
|
|
|
@ -43,9 +43,10 @@ class CacheWarmupTask extends AbstractTask
|
|||
|
||||
protected function getOptions()
|
||||
{
|
||||
$userOptions = $this->runtime->getConfigOptions('symfony', []);
|
||||
$options = array_merge(
|
||||
['path' => 'bin/console', 'env' => 'dev', 'flags' => ''],
|
||||
$this->runtime->getConfigOptions('symfony', []),
|
||||
(is_array($userOptions) ? $userOptions : []),
|
||||
$this->options
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue