1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/15536] Catalog: adds satis.phpbb.com to repositories

Also always installs composer/installers in vendor-ext too.

PHPBB3-15536
This commit is contained in:
Tristan Darricau
2017-12-30 11:21:57 +01:00
committed by Tristan Darricau
parent 4981f4cddd
commit 5f3898fc5f
2 changed files with 39 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
namespace phpbb\db\migration\data\v330;
class extensions_composer_2 extends \phpbb\db\migration\migration
{
public function update_data()
{
$repositories = json_decode($this->config('exts_composer_repositories'), true);
$repositories[] = 'https://satis.phpbb.com';
$repositories = array_unique($repositories);
return array(
array('config.update', array('exts_composer_repositories', json_encode($repositories, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES))),
);
}
static public function depends_on()
{
return array('\phpbb\db\migration\data\v330\extensions_composer');
}
}