Skip to content

Remove SessionTrait trait from Wizard class#2159

Merged
mvorisek merged 1 commit intodevelopfrom
wizard_wo_SessionTrait
Feb 3, 2024
Merged

Remove SessionTrait trait from Wizard class#2159
mvorisek merged 1 commit intodevelopfrom
wizard_wo_SessionTrait

Conversation

@mvorisek
Copy link
Copy Markdown
Member

@mvorisek mvorisek commented Feb 3, 2024

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);

@mvorisek mvorisek marked this pull request as ready for review February 3, 2024 23:38
@mvorisek mvorisek merged commit 5131d22 into develop Feb 3, 2024
@mvorisek mvorisek deleted the wizard_wo_SessionTrait branch February 3, 2024 23:53
@mvorisek mvorisek changed the title Remove SessionTrait from Wizard Remove SessionTrait trait from Wizard class Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant