atk4 / ui

Robust and easy to use PHP Framework for Web Apps
https://atk4-ui.readthedocs.io/en/stable/
MIT License
447 stars 106 forks source link

Remove SessionTrait trait from Wizard class #2159

Closed mvorisek closed 9 months ago

mvorisek commented 9 months ago

If you need SessionTrait, extend Wizard class, possibly even using anonymous class:

-$wizard = Wizard::addTo($app);
+$wizard = get_class(new class() extends Wizard {
+    use SessionTrait;
+})::addTo($app);