Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Version 4.0 (complete rewrite) #208

@burzum

Description

@burzum

⚠️ This is going to be a big BC breaker but it should be easy to write a migration for the existing data. ⚠️

The goal is to get rid of the thight coupling of the functionality of this plugin to the CakePHP framework. The internal coupling is bad and being tight bound to the framework causes more work than gaining a benefit from it. Then new version is going to use a framework agnostic library version of this plugin and is going to integrate it just very loose to Cake, so that future changes the framework is going to make wont' cause a lot work. However, I would recommend to use phauthentic/file-storage directly, you can already start to read the docs if you want. Experience has shown that all the plugins are just a PITA to maintain when CakePHP requires changes to the plugins, even inside minor releases.

The development work is done in the 4.0 branch https://github.com/burzum/cakephp-file-storage/tree/4.0

Todo:

  • Drop Gaufrette🗑️
  • Drop Imagine🗑️
  • Use CakePHP 4 🥳
  • Use php 7.4 🥳
  • Use phauthentic/file-storage (using Intervention Image and Flysystem) 🥳
  • Use phauthentic/file-storage-image-processor 🥳
  • Drop all the event listeners 🗑️
  • Total rewrite of the path builders (using phauthentic/file-storage)
  • Refactor the behavior and simplify it a lot
  • Refactor the helpers
  • Update the shells
  • Update tests
  • Tag stable releases of the phauthentic libraries
  • Update documentation - HELP WANTED AND APPRECIATED 🍻

Looking back at the old code makes me regretting not doing this cut earlier... 😟

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions