magallanes/src/Task/BuiltIn/Symfony/AbstractSymfonyTask.php

46 lines
981 B
PHP
Raw Normal View History

2017-04-14 20:43:27 +02:00
<?php
2022-04-10 06:20:03 +02:00
2017-04-14 20:43:27 +02:00
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Mage\Task\BuiltIn\Symfony;
use Mage\Task\AbstractTask;
/**
* Abstract Symfony Task
*
* @author Andrés Montañez <andresmontanez@gmail.com>
*/
abstract class AbstractSymfonyTask extends AbstractTask
{
2022-04-10 06:20:03 +02:00
/**
* @return array<string, string>
*/
protected function getOptions(): array
2017-04-14 20:43:27 +02:00
{
$options = array_merge(
['console' => 'bin/console', 'env' => 'dev', 'flags' => ''],
$this->getSymfonyOptions(),
$this->runtime->getMergedOption('symfony'),
$this->options
);
return $options;
}
2022-04-10 06:20:03 +02:00
/**
* @return array<string, string|null>
*/
protected function getSymfonyOptions(): array
2017-04-14 20:43:27 +02:00
{
return [];
}
}