Created DefaultAdapter service class:
- created form object based on form service name or from AbstractType.
- Bind above form with request ( if avaible )
- getForm and setForm for easy form get/set from/to adapter
- getUploadedFile - Returns UploadFile object from binded form
- getFormData - Returns MediaFile or mixed
Improved MediaFileForm:
- it is using a new type btn_media_type_file form field ( file is the parent )
- register above field as service
- Added above field to the form class
- Used btn_create/update buttons as a submit
MediaFileUploader
- Moved it the the Uploader\Uploader
- Added setAdapter($adapter) which runs handleUpload
MediaControlController
- Use new adapter to get and render form
- Use new adapter to bind its data with Uploader
Clean up:
- Moved File.php to the Model dir