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:
committed by
Tristan Darricau
parent
972f3a7ff4
commit
9a836b5901
@@ -45,6 +45,13 @@ class container_configuration implements ConfigurationInterface
|
||||
->booleanNode('enable_debug_extension')->defaultValue(false)->end()
|
||||
->end()
|
||||
->end()
|
||||
->arrayNode('extensions')
|
||||
->addDefaultsIfNotSet()
|
||||
->children()
|
||||
->booleanNode('composer_debug')->defaultValue(false)->end()
|
||||
->booleanNode('composer_verbose')->defaultValue(false)->end()
|
||||
->end()
|
||||
->end()
|
||||
->end()
|
||||
;
|
||||
return $treeBuilder;
|
||||
|
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user