Skip to content

Commit

Permalink
Introduce options-resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh committed Oct 27, 2015
1 parent 342919f commit 4d8ff38
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -10,7 +10,8 @@
}
],
"require": {
"php": ">=5.5"
"php": ">=5.5",
"symfony/options-resolver": "~2.7"
},
"require-dev": {
"satooshi/php-coveralls": "~0.6",
Expand Down
15 changes: 14 additions & 1 deletion src/KnobRenderer.php
Expand Up @@ -2,9 +2,22 @@

namespace SLLH\Knob;

use Symfony\Component\OptionsResolver\OptionsResolver;

/**
* @author Sullivan Senechal <soullivaneuh@gmail.com>
*/
class KnobRenderer
final class KnobRenderer
{
public function renderInput($options)
{
$resolver = new OptionsResolver();
$this->configureOptions($resolver);

$options = $resolver->resolve($options);
}

public function configureOptions(OptionsResolver $resolver)
{
}
}

0 comments on commit 4d8ff38

Please sign in to comment.