mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/11150] Use a trait to translate composer and introduce web_io
PHPBB3-11150
This commit is contained in:
committed by
Tristan Darricau
parent
8a1ca4375e
commit
8b1284594b
39
phpBB/phpbb/composer/io/web_io.php
Normal file
39
phpBB/phpbb/composer/io/web_io.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?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\composer\io;
|
||||
|
||||
use Composer\IO\BufferIO;
|
||||
use phpbb\language\language;
|
||||
use Symfony\Component\Console\Helper\HelperSet;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
class web_io extends BufferIO
|
||||
{
|
||||
use translate_composer_trait;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param InputInterface $input The input instance
|
||||
* @param OutputInterface $output The output instance
|
||||
* @param HelperSet $helperSet The helperSet instance
|
||||
*/
|
||||
public function __construct(InputInterface $input, OutputInterface $output, HelperSet $helperSet, language $language)
|
||||
{
|
||||
$this->language = $language;
|
||||
|
||||
parent::__construct($input, $output, $helperSet);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user