mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01: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 New Issue
	
	Block a user