sroze / SRIORestUploadBundle

A symfony bundle to handle multiple upload ways on your REST API.
46 stars 17 forks source link

Disabling certain upload processors #17

Closed inverse closed 9 years ago

inverse commented 9 years ago

Is it possible to disable upload processors? For example:

I only require the simple processor so do not require the resumable entity to be provided however this causes the following.

  [Symfony\Component\Debug\Exception\ContextErrorException]
  Notice: Undefined index: resumable_entity_class in C:\proj\vendor\srio\rest-upload-bundle\SRIO\Res
  tUploadBundle\DependencyInjection\SRIORestUploadExtension.php line 30

By setting this to null in config.yml prevents this (resumable_entity_class: ~). But still this has a dependency on on the orm even though it's not being used.

sroze commented 9 years ago

You can set a class name that don't exists if you don't need that processor. BTW I think that's not a good way to do: you're for sure welcome to PR :)

sroze commented 9 years ago

Fixed by 8410627.

inverse commented 9 years ago

:+1: