1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/11150] Makes composer output level configurable

PHPBB3-11150
This commit is contained in:
Tristan Darricau
2015-09-16 16:25:45 +02:00
committed by Tristan Darricau
parent 972f3a7ff4
commit 9a836b5901
6 changed files with 55 additions and 20 deletions

View File

@@ -15,6 +15,7 @@ namespace phpbb\di\extension;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
@@ -92,6 +93,18 @@ class core extends Extension
$definition->addTag('twig.extension');
}
$composer_output = OutputInterface::VERBOSITY_NORMAL;
if ($config['extensions']['composer_verbose'])
{
$composer_output = OutputInterface::VERBOSITY_VERBOSE;
}
if ($config['extensions']['composer_debug'])
{
$composer_output = OutputInterface::VERBOSITY_DEBUG;
}
$container->setParameter('extensions.composer.output', $composer_output);
// Set the debug options
foreach ($config['debug'] as $name => $value)
{