Skip to content

Commit

Permalink
app section in config is required
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-gribanov committed Jul 18, 2017
1 parent fce501c commit db9132b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/DependencyInjection/Configuration.php
Expand Up @@ -66,6 +66,7 @@ public function getConfigTreeBuilder()
->cannotBeEmpty()
->end()
->end()
->isRequired()
->end()
->end()
->end()
Expand Down
1 change: 1 addition & 0 deletions tests/DependencyInjection/ConfigurationTest.php
Expand Up @@ -66,6 +66,7 @@ public function testConfigTree()
$this->assertFalse($api['protover']->isRequired());

$this->assertInstanceOf(ArrayNode::class, $children['app']);
$this->assertTrue($children['app']->isRequired());

/* @var $app ScalarNode[] */
$app = $children['app']->getChildren();
Expand Down

0 comments on commit db9132b

Please sign in to comment.