Open dereuromark opened 2 weeks ago
-$this->set('_serialize', 'result');
+$this->viewBuilder()->setOption('serialize', 'result');
as well as
-TableRegistry::get()
+TableRegistry::getTableLocator()->get()
also was sth that needed to be done manually it seems.
I think the recommended way to fetch table instances is via the LocatorAwareTrait, not directly from the TableRegistry, right?
If so then we'd need to add the trait via rector as well and replace it with
$this->fetchTable();
Sure but for now the quick way would be a simpler replace. Either way works.
Sure but for now the quick way would be a simpler replace. Either way works.
While the simple replacement isn't the most correct, the upgrade process will be smoother if we had the simple method replacement.
Just adding them as note for now, if someone wants to tackle those
for plugin routes.php files
replacement