Renaming Flow core classes Resource and Object

So, I have the following “plan” currently:

  • rename Object to StorageObect as already agreed
  • rename Resource to PersistentResource as already agreed
  • do all that for the oldes maintained release
  • create a new package that contains the old classes and declares itself compatible with PHP < 7.1 only and which we require (for PHP >= 7.1 that package would be empty or whatever works…)

That would allow people to adjust their code even when using older versions of Flow and at the same time keep it working for un-adjusted code.

Now, that sounded clever, until I came here to post this, and realized we indeed need to rename TYPO3\Flow\Resource and TYPO3\Flow\Object namespaces anyway (do we really have to? sources welcome, @christianm).

Bummer. So, would this just mean a ton of classes or aliases more in that compatibility package? Or…? Gnah.

1 Like