-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add image form type #130
Add image form type #130
Conversation
+1 :) |
@@ -55,5 +55,9 @@ public function load(array $configs, ContainerBuilder $container) | |||
} | |||
|
|||
$container->setParameter('liip_imagine.cache.resolver.base_path', $config['cache_base_path']); | |||
|
|||
$resources = $container->hasParameter('twig.form.resources') ? $container->getParameter('twig.form.resources') : array(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the standard pattern for adding form resources in other Bundles too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example, it's done like that in the SymfonyCmfRoutingExtraBundle too. That is the only way i know. Do you know a better one ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see .. i dont know .. i was just wondering :)
/cc @bschussek
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah @lsmith77, do you know a better one? :P (which translates to I don't know either)
Thanks ! |
Displays a file input with an imagine thumbnail. Only
image_path
andimage_filter
options are mandatory.I often need this and I think it would be nice to make it available in the bundle.