mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2024-12-04 23:17:19 +01:00
Solved new implementation of InvalidGetParameterException
This commit is contained in:
parent
48a98cfc63
commit
679bfd2079
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Infinito\Exception;
|
||||
namespace Infinito\Exception\Validation;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Infinito\Exception;
|
||||
namespace Infinito\Exception\Validation;
|
||||
|
||||
/**
|
||||
* Thrown when an unvalid get paramter is used.
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Infinito\Exception;
|
||||
namespace Infinito\Exception\Validation;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Infinito\Exception;
|
||||
namespace Infinito\Exception\Validation;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
|
Loading…
Reference in New Issue
Block a user