Permalink
Browse files

[Captcha] Don't fail at compile-time when GD isn't available

see #210
  • Loading branch information...
1 parent 56c59e3 commit 7a9406c44d75a08418ab284a262c2814a1f2d20e @bamarni bamarni committed Feb 10, 2013
Showing with 0 additions and 4 deletions.
  1. +0 −4 DependencyInjection/GenemuFormExtension.php
@@ -76,10 +76,6 @@ public function load(array $configs, ContainerBuilder $container)
*/
private function registerCaptchaConfiguration(array $configs, ContainerBuilder $container)
{
- if (!function_exists('image' . $configs['format'])) {
- throw new \LogicException(sprintf('Format %s does not supported.', $configs['format']));
- }
-
$fontDir = $container->getParameterBag()->resolveValue($configs['font_dir']);
foreach ($configs['fonts'] as $index => $font) {
if (is_file($fontDir . '/' . $font)) {

0 comments on commit 7a9406c

Please sign in to comment.