Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
Merge pull request #65 from binarious/patch-1
Browse files Browse the repository at this point in the history
Allow from naming
  • Loading branch information
benji07 authored Jun 27, 2017
2 parents 66996ed + bb77cf1 commit 8dfd7d8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,17 @@ public function getConfigTreeBuilder()
->prototype('scalar')
->end()
->end()
->scalarNode('from')
->arrayNode('from')
->beforeNormalization()
->ifString()
->then(function ($value) {
return array($value);
})
->end()
->isRequired()
->cannotBeEmpty()
->prototype('scalar')
->end()
->end()
->booleanNode('handle404')
->defaultValue(false)
Expand Down

0 comments on commit 8dfd7d8

Please sign in to comment.