Created simple AdapterInterface to easy enforce Adapter class
Improved Adapter service:
- It doesn't keep category now, only add it to the adapter form binded entity.
- It get form service class as 4 argument of constructor now.
- Becasue of above we can easly change the form action attr.
- It keeps UploadedFile object to the private property file now, casue form is not binded with file anymore.
- Added public methods to get/set above file.
- Cleaned up this service and changed it services.yml conf.
Improved MediaControlController:
- Deleted not used methods and templates
- Changed routes names.
MediaCategory:
- Moved logic to the MediaCategoryControlController class ( moved templates also)
- Fixed and improved logic for creating/editin category
- Added posibility to change form action attr ( imporved MediaCategoryForm class - added new methods ).
- Entity implements MediaCategoryInterface.
Improved Uploader:
- It doesn't keep/handle category now ( removed property and methods ).
- It can only save/update Media entity now ( UploadedFile is not need to modify Media entity - TODO: separate this logic ).
- Clean up this service.
Media entity:
- Improved MediaForm class ( deleted, not used MediaFileForm class )
- Type property can be null now ( to check )
- Added category field to the MediaForm class.
- MediaForm class is default Media form service now.
Improved main layout template:
- Clean up
- Added new links for category handling.
Fixes:
- Fixed bad providers calls.
- Fixed AbstractMedia - changed property category to protected
- Fixed AbstractMediaCategor - implements right interface.
Clean up:
- Removed old qq logic ( js, php and css )