Skip to content

Commit

Permalink
Merge pull request #21 from bluntelk/master
Browse files Browse the repository at this point in the history
fixing use of depreciated OptionsResolverInterface
  • Loading branch information
jbouzekri authored Feb 15, 2017
2 parents 4bd76b6 + b1f48da commit b4a3af6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Service/Validator/AbstractImageValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Jb\Bundle\FileUploaderBundle\Service\Validator;

use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Jb\Bundle\FileUploaderBundle\Exception\ValidationException;

/**
Expand All @@ -23,9 +23,9 @@ abstract class AbstractImageValidator extends AbstractValidator
/**
* {@inheritdoc}
*/
protected function configureOptions(OptionsResolverInterface $resolver)
protected function configureOptions(OptionsResolver $resolver)
{
$resolver->setOptional(array(
$resolver->setDefined(array(
'MinWidth',
'MaxWidth',
'MinHeight',
Expand Down
6 changes: 3 additions & 3 deletions Service/Validator/AbstractValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
namespace Jb\Bundle\FileUploaderBundle\Service\Validator;

use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

/**
* AbstractValidator
Expand All @@ -23,9 +22,9 @@ abstract class AbstractValidator
/**
* Configure the validator
*
* @param OptionsResolverInterface $resolver
* @param OptionsResolver $resolver
*/
protected function configureOptions(OptionsResolverInterface $resolver)
protected function configureOptions(OptionsResolver $resolver)
{
}

Expand All @@ -51,6 +50,7 @@ public function applyValidator($value, array $configuration)
* Extract the value used in the validator
*
* @param mixed $value
* @return mixed|string
*/
protected function formatValue($value)
{
Expand Down

0 comments on commit b4a3af6

Please sign in to comment.