mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-03 14:33:15 +02:00
46 lines
936 B
PHP
46 lines
936 B
PHP
<?php
|
|
|
|
/*
|
|
* 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\Composer;
|
|
|
|
use Mage\Task\AbstractTask;
|
|
|
|
/**
|
|
* Abstract Composer Task
|
|
*
|
|
* @author Andrés Montañez <andresmontanez@gmail.com>
|
|
*/
|
|
abstract class AbstractComposerTask extends AbstractTask
|
|
{
|
|
/**
|
|
* @return string[]
|
|
*/
|
|
protected function getOptions(): array
|
|
{
|
|
$options = array_merge(
|
|
['path' => 'composer'],
|
|
$this->getComposerOptions(),
|
|
$this->runtime->getMergedOption('composer'),
|
|
$this->options
|
|
);
|
|
|
|
return $options;
|
|
}
|
|
|
|
/**
|
|
* @return array<string, string|int>
|
|
*/
|
|
protected function getComposerOptions(): array
|
|
{
|
|
return [];
|
|
}
|
|
}
|