code fixes
This commit is contained in:
parent
df94282dab
commit
e97af0bac0
@ -12,11 +12,8 @@
|
|||||||
namespace Symfony\Bundle\FrameworkBundle\Command;
|
namespace Symfony\Bundle\FrameworkBundle\Command;
|
||||||
|
|
||||||
use Symfony\Component\Console\Input\InputArgument;
|
use Symfony\Component\Console\Input\InputArgument;
|
||||||
use Symfony\Component\Console\Input\InputOption;
|
|
||||||
use Symfony\Component\Console\Input\InputInterface;
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Symfony\Component\Console\Output\Output;
|
|
||||||
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|
||||||
use Symfony\Component\Config\Definition\NodeInterface;
|
use Symfony\Component\Config\Definition\NodeInterface;
|
||||||
use Symfony\Component\Config\Definition\ArrayNode;
|
use Symfony\Component\Config\Definition\ArrayNode;
|
||||||
use Symfony\Component\Config\Definition\PrototypedArrayNode;
|
use Symfony\Component\Config\Definition\PrototypedArrayNode;
|
||||||
@ -86,7 +83,7 @@ EOF
|
|||||||
foreach ($kernel->getBundles() as $bundle) {
|
foreach ($kernel->getBundles() as $bundle) {
|
||||||
$extension = $bundle->getContainerExtension();
|
$extension = $bundle->getContainerExtension();
|
||||||
|
|
||||||
if ($extension && ($extension->getAlias() == $name)) {
|
if ($extension && $extension->getAlias() === $name) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -143,11 +140,8 @@ EOF
|
|||||||
|
|
||||||
if ($is_indexed) {
|
if ($is_indexed) {
|
||||||
$this->outputLine('- '.$val, $depth * 4);
|
$this->outputLine('- '.$val, $depth * 4);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$text = sprintf('%-20s %s', $key.':', $val);
|
$this->outputLine(sprintf('%-20s %s', $key.':', $val), $depth * 4);
|
||||||
$this->outputLine($text, $depth * 4);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
|
@ -72,7 +72,8 @@ class Configuration implements ConfigurationInterface
|
|||||||
{
|
{
|
||||||
$rootNode
|
$rootNode
|
||||||
->children()
|
->children()
|
||||||
->arrayNode('form')->setInfo('form configuration')
|
->arrayNode('form')
|
||||||
|
->setInfo('form configuration')
|
||||||
->canBeUnset()
|
->canBeUnset()
|
||||||
->treatNullLike(array('enabled' => true))
|
->treatNullLike(array('enabled' => true))
|
||||||
->treatTrueLike(array('enabled' => true))
|
->treatTrueLike(array('enabled' => true))
|
||||||
@ -97,7 +98,8 @@ class Configuration implements ConfigurationInterface
|
|||||||
{
|
{
|
||||||
$rootNode
|
$rootNode
|
||||||
->children()
|
->children()
|
||||||
->arrayNode('esi')->setInfo('esi configuration')
|
->arrayNode('esi')
|
||||||
|
->setInfo('esi configuration')
|
||||||
->canBeUnset()
|
->canBeUnset()
|
||||||
->treatNullLike(array('enabled' => true))
|
->treatNullLike(array('enabled' => true))
|
||||||
->treatTrueLike(array('enabled' => true))
|
->treatTrueLike(array('enabled' => true))
|
||||||
@ -113,7 +115,8 @@ class Configuration implements ConfigurationInterface
|
|||||||
{
|
{
|
||||||
$rootNode
|
$rootNode
|
||||||
->children()
|
->children()
|
||||||
->arrayNode('profiler')->setInfo('profiler configuration')
|
->arrayNode('profiler')
|
||||||
|
->setInfo('profiler configuration')
|
||||||
->canBeUnset()
|
->canBeUnset()
|
||||||
->children()
|
->children()
|
||||||
->booleanNode('only_exceptions')->defaultFalse()->end()
|
->booleanNode('only_exceptions')->defaultFalse()->end()
|
||||||
@ -141,7 +144,8 @@ class Configuration implements ConfigurationInterface
|
|||||||
{
|
{
|
||||||
$rootNode
|
$rootNode
|
||||||
->children()
|
->children()
|
||||||
->arrayNode('router')->setInfo('router configuration')
|
->arrayNode('router')
|
||||||
|
->setInfo('router configuration')
|
||||||
->canBeUnset()
|
->canBeUnset()
|
||||||
->children()
|
->children()
|
||||||
->scalarNode('resource')->isRequired()->end()
|
->scalarNode('resource')->isRequired()->end()
|
||||||
@ -158,7 +162,8 @@ class Configuration implements ConfigurationInterface
|
|||||||
{
|
{
|
||||||
$rootNode
|
$rootNode
|
||||||
->children()
|
->children()
|
||||||
->arrayNode('session')->setInfo('session configuration')
|
->arrayNode('session')
|
||||||
|
->setInfo('session configuration')
|
||||||
->canBeUnset()
|
->canBeUnset()
|
||||||
->children()
|
->children()
|
||||||
->booleanNode('auto_start')->defaultFalse()->end()
|
->booleanNode('auto_start')->defaultFalse()->end()
|
||||||
@ -200,7 +205,8 @@ class Configuration implements ConfigurationInterface
|
|||||||
|
|
||||||
$rootNode
|
$rootNode
|
||||||
->children()
|
->children()
|
||||||
->arrayNode('templating')->setInfo('templating configuration')
|
->arrayNode('templating')
|
||||||
|
->setInfo('templating configuration')
|
||||||
->canBeUnset()
|
->canBeUnset()
|
||||||
->children()
|
->children()
|
||||||
->scalarNode('assets_version')->defaultValue(null)->end()
|
->scalarNode('assets_version')->defaultValue(null)->end()
|
||||||
@ -314,7 +320,8 @@ class Configuration implements ConfigurationInterface
|
|||||||
{
|
{
|
||||||
$rootNode
|
$rootNode
|
||||||
->children()
|
->children()
|
||||||
->arrayNode('translator')->setInfo('translator configuration')
|
->arrayNode('translator')
|
||||||
|
->setInfo('translator configuration')
|
||||||
->canBeUnset()
|
->canBeUnset()
|
||||||
->treatNullLike(array('enabled' => true))
|
->treatNullLike(array('enabled' => true))
|
||||||
->treatTrueLike(array('enabled' => true))
|
->treatTrueLike(array('enabled' => true))
|
||||||
@ -331,7 +338,8 @@ class Configuration implements ConfigurationInterface
|
|||||||
{
|
{
|
||||||
$rootNode
|
$rootNode
|
||||||
->children()
|
->children()
|
||||||
->arrayNode('validation')->setInfo('validation configuration')
|
->arrayNode('validation')
|
||||||
|
->setInfo('validation configuration')
|
||||||
->canBeUnset()
|
->canBeUnset()
|
||||||
->treatNullLike(array('enabled' => true))
|
->treatNullLike(array('enabled' => true))
|
||||||
->treatTrueLike(array('enabled' => true))
|
->treatTrueLike(array('enabled' => true))
|
||||||
@ -349,7 +357,8 @@ class Configuration implements ConfigurationInterface
|
|||||||
{
|
{
|
||||||
$rootNode
|
$rootNode
|
||||||
->children()
|
->children()
|
||||||
->arrayNode('annotations')->setInfo('annotation configuration')
|
->arrayNode('annotations')
|
||||||
|
->setInfo('annotation configuration')
|
||||||
->addDefaultsIfNotSet()
|
->addDefaultsIfNotSet()
|
||||||
->children()
|
->children()
|
||||||
->scalarNode('cache')->defaultValue('file')->end()
|
->scalarNode('cache')->defaultValue('file')->end()
|
||||||
|
Reference in New Issue
Block a user