From 4f5b44bd3bd490309eb2ba7b44df4769816ba729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sat, 3 Aug 2013 19:26:54 +0200 Subject: twig implementation --- .../Form/Exception/AlreadyBoundException.php | 22 ++++++++++++++++++++++ .../Form/Exception/AlreadySubmittedException.php | 22 ++++++++++++++++++++++ .../Form/Exception/BadMethodCallException.php | 21 +++++++++++++++++++++ .../Form/Exception/ErrorMappingException.php | 16 ++++++++++++++++ .../Form/Exception/ExceptionInterface.php | 21 +++++++++++++++++++++ .../Form/Exception/InvalidArgumentException.php | 21 +++++++++++++++++++++ .../Exception/InvalidConfigurationException.php | 16 ++++++++++++++++ .../Component/Form/Exception/LogicException.php | 21 +++++++++++++++++++++ .../Form/Exception/OutOfBoundsException.php | 21 +++++++++++++++++++++ .../Component/Form/Exception/RuntimeException.php | 21 +++++++++++++++++++++ .../Form/Exception/StringCastException.php | 16 ++++++++++++++++ .../Exception/TransformationFailedException.php | 21 +++++++++++++++++++++ .../Form/Exception/UnexpectedTypeException.php | 20 ++++++++++++++++++++ 13 files changed, 259 insertions(+) create mode 100644 vendor/symfony/form/Symfony/Component/Form/Exception/AlreadyBoundException.php create mode 100644 vendor/symfony/form/Symfony/Component/Form/Exception/AlreadySubmittedException.php create mode 100644 vendor/symfony/form/Symfony/Component/Form/Exception/BadMethodCallException.php create mode 100644 vendor/symfony/form/Symfony/Component/Form/Exception/ErrorMappingException.php create mode 100644 vendor/symfony/form/Symfony/Component/Form/Exception/ExceptionInterface.php create mode 100644 vendor/symfony/form/Symfony/Component/Form/Exception/InvalidArgumentException.php create mode 100644 vendor/symfony/form/Symfony/Component/Form/Exception/InvalidConfigurationException.php create mode 100644 vendor/symfony/form/Symfony/Component/Form/Exception/LogicException.php create mode 100644 vendor/symfony/form/Symfony/Component/Form/Exception/OutOfBoundsException.php create mode 100644 vendor/symfony/form/Symfony/Component/Form/Exception/RuntimeException.php create mode 100644 vendor/symfony/form/Symfony/Component/Form/Exception/StringCastException.php create mode 100644 vendor/symfony/form/Symfony/Component/Form/Exception/TransformationFailedException.php create mode 100644 vendor/symfony/form/Symfony/Component/Form/Exception/UnexpectedTypeException.php (limited to 'vendor/symfony/form/Symfony/Component/Form/Exception') diff --git a/vendor/symfony/form/Symfony/Component/Form/Exception/AlreadyBoundException.php b/vendor/symfony/form/Symfony/Component/Form/Exception/AlreadyBoundException.php new file mode 100644 index 00000000..7ef0ca02 --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/Exception/AlreadyBoundException.php @@ -0,0 +1,22 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Form\Exception; + +/** + * Alias of {@link AlreadySubmittedException}. + * + * @deprecated Deprecated since version 2.3, to be removed in 3.0. Use + * {@link AlreadySubmittedException} instead. + */ +class AlreadyBoundException extends LogicException +{ +} diff --git a/vendor/symfony/form/Symfony/Component/Form/Exception/AlreadySubmittedException.php b/vendor/symfony/form/Symfony/Component/Form/Exception/AlreadySubmittedException.php new file mode 100644 index 00000000..7be21249 --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/Exception/AlreadySubmittedException.php @@ -0,0 +1,22 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Form\Exception; + +/** + * Thrown when an operation is called that is not acceptable after submitting + * a form. + * + * @author Bernhard Schussek + */ +class AlreadySubmittedException extends AlreadyBoundException +{ +} diff --git a/vendor/symfony/form/Symfony/Component/Form/Exception/BadMethodCallException.php b/vendor/symfony/form/Symfony/Component/Form/Exception/BadMethodCallException.php new file mode 100644 index 00000000..27649dd0 --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/Exception/BadMethodCallException.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Form\Exception; + +/** + * Base BadMethodCallException for the Form component. + * + * @author Bernhard Schussek + */ +class BadMethodCallException extends \BadMethodCallException implements ExceptionInterface +{ +} diff --git a/vendor/symfony/form/Symfony/Component/Form/Exception/ErrorMappingException.php b/vendor/symfony/form/Symfony/Component/Form/Exception/ErrorMappingException.php new file mode 100644 index 00000000..a6968492 --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/Exception/ErrorMappingException.php @@ -0,0 +1,16 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Form\Exception; + +class ErrorMappingException extends RuntimeException +{ +} diff --git a/vendor/symfony/form/Symfony/Component/Form/Exception/ExceptionInterface.php b/vendor/symfony/form/Symfony/Component/Form/Exception/ExceptionInterface.php new file mode 100644 index 00000000..d455932e --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/Exception/ExceptionInterface.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Form\Exception; + +/** + * Base ExceptionInterface for the Form component. + * + * @author Bernhard Schussek + */ +interface ExceptionInterface +{ +} diff --git a/vendor/symfony/form/Symfony/Component/Form/Exception/InvalidArgumentException.php b/vendor/symfony/form/Symfony/Component/Form/Exception/InvalidArgumentException.php new file mode 100644 index 00000000..a270e0ce --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/Exception/InvalidArgumentException.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Form\Exception; + +/** + * Base InvalidArgumentException for the Form component. + * + * @author Bernhard Schussek + */ +class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface +{ +} diff --git a/vendor/symfony/form/Symfony/Component/Form/Exception/InvalidConfigurationException.php b/vendor/symfony/form/Symfony/Component/Form/Exception/InvalidConfigurationException.php new file mode 100644 index 00000000..daa0c42f --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/Exception/InvalidConfigurationException.php @@ -0,0 +1,16 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Form\Exception; + +class InvalidConfigurationException extends InvalidArgumentException +{ +} diff --git a/vendor/symfony/form/Symfony/Component/Form/Exception/LogicException.php b/vendor/symfony/form/Symfony/Component/Form/Exception/LogicException.php new file mode 100644 index 00000000..84878021 --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/Exception/LogicException.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Form\Exception; + +/** + * Base LogicException for Form component. + * + * @author Alexander Kotynia + */ +class LogicException extends \LogicException implements ExceptionInterface +{ +} diff --git a/vendor/symfony/form/Symfony/Component/Form/Exception/OutOfBoundsException.php b/vendor/symfony/form/Symfony/Component/Form/Exception/OutOfBoundsException.php new file mode 100644 index 00000000..44d31166 --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/Exception/OutOfBoundsException.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Form\Exception; + +/** + * Base OutOfBoundsException for Form component. + * + * @author Alexander Kotynia + */ +class OutOfBoundsException extends \OutOfBoundsException implements ExceptionInterface +{ +} diff --git a/vendor/symfony/form/Symfony/Component/Form/Exception/RuntimeException.php b/vendor/symfony/form/Symfony/Component/Form/Exception/RuntimeException.php new file mode 100644 index 00000000..0af48a4a --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/Exception/RuntimeException.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Form\Exception; + +/** + * Base RuntimeException for the Form component. + * + * @author Bernhard Schussek + */ +class RuntimeException extends \RuntimeException implements ExceptionInterface +{ +} diff --git a/vendor/symfony/form/Symfony/Component/Form/Exception/StringCastException.php b/vendor/symfony/form/Symfony/Component/Form/Exception/StringCastException.php new file mode 100644 index 00000000..f9b51d60 --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/Exception/StringCastException.php @@ -0,0 +1,16 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Form\Exception; + +class StringCastException extends RuntimeException +{ +} diff --git a/vendor/symfony/form/Symfony/Component/Form/Exception/TransformationFailedException.php b/vendor/symfony/form/Symfony/Component/Form/Exception/TransformationFailedException.php new file mode 100644 index 00000000..d32896e6 --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/Exception/TransformationFailedException.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Form\Exception; + +/** + * Indicates a value transformation error. + * + * @author Bernhard Schussek + */ +class TransformationFailedException extends RuntimeException +{ +} diff --git a/vendor/symfony/form/Symfony/Component/Form/Exception/UnexpectedTypeException.php b/vendor/symfony/form/Symfony/Component/Form/Exception/UnexpectedTypeException.php new file mode 100644 index 00000000..474e244b --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/Exception/UnexpectedTypeException.php @@ -0,0 +1,20 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Form\Exception; + +class UnexpectedTypeException extends InvalidArgumentException +{ + public function __construct($value, $expectedType) + { + parent::__construct(sprintf('Expected argument of type "%s", "%s" given', $expectedType, is_object($value) ? get_class($value) : gettype($value))); + } +} -- cgit v1.2.3