diff --git a/src/Form/Ui.php b/src/Form/Ui.php index ca004d4..faf9556 100644 --- a/src/Form/Ui.php +++ b/src/Form/Ui.php @@ -53,6 +53,7 @@ class Ui extends UiElement implements Extension { $input = new UiHidden(); break; + case in_array('img', $options): case in_array('image', $options): $input = new UiImage(); break; @@ -119,7 +120,7 @@ class Ui extends UiElement implements Extension { } if (empty($input)) { - throw new \Exception("Missing token ? $token"); + throw new \Exception("Missing token ? $token $arguments"); } return $input->parse($context, $arguments, $token, $options);