Completed
Pull Request — master (#419)
by Andrés
05:59
created

AbstractSymfonyTask::getSymfonyOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
/*
3
 * This file is part of the Magallanes package.
4
 *
5
 * (c) Andrés Montañez <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Mage\Task\BuiltIn\Symfony;
12
13
use Mage\Task\AbstractTask;
14
15
/**
16
 * Abstract Symfony Task
17
 *
18
 * @author Andrés Montañez <[email protected]>
19
 */
20
abstract class AbstractSymfonyTask extends AbstractTask
21
{
22
    protected function getOptions()
23
    {
24
        $options = array_merge(
25
            ['console' => 'bin/console', 'env' => 'dev', 'flags' => ''],
26
            $this->getSymfonyOptions(),
27
            $this->runtime->getMergedOption('symfony'),
28
            $this->options
29
        );
30
31
        return $options;
32
    }
33
34
    protected function getSymfonyOptions()
35
    {
36
        return [];
37
    }
38
}
39