mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Solved new implementation of InvalidGetParameterException
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
namespace Infinito\Domain\ParameterManagement\Parameter;
|
||||
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
use Infinito\Exception\UnvalidGetParameterException;
|
||||
use Infinito\Exception\Validation\InvalidGetParameterException;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
@@ -13,7 +13,7 @@ final class FrameParameter extends AbstractParameter
|
||||
/**
|
||||
* @var bool The standart value which will be used
|
||||
*/
|
||||
const STANDART_VALUE = true;
|
||||
private const STANDART_VALUE = true;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
@@ -48,6 +48,6 @@ final class FrameParameter extends AbstractParameter
|
||||
return;
|
||||
}
|
||||
}
|
||||
throw new UnvalidGetParameterException("It\'s not possible to set <<$value>> of type <<".$type.'>> for class <<'.get_class().'>>. Just 0 and 1 are allowed!');
|
||||
throw new InvalidGetParameterException("It\'s not possible to set <<$value>> of type <<".$type.'>> for class <<'.get_class().'>>. Just 0 and 1 are allowed!');
|
||||
}
|
||||
}
|
||||
|
@@ -4,7 +4,7 @@ namespace Infinito\Domain\ParameterManagement;
|
||||
|
||||
use Symfony\Component\HttpFoundation\RequestStack;
|
||||
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
||||
use Infinito\Exception\UnvalidGetParameterException;
|
||||
use Infinito\Exception\Validation\InvalidGetParameterException;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
|
Reference in New Issue
Block a user