Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create widgetbuilder for widgets and snippets #408

Open
bobdenotter opened this issue Apr 19, 2019 · 1 comment

Comments

@bobdenotter
Copy link
Member

commented Apr 19, 2019

@JarJak

This comment has been minimized.

Copy link
Member

commented Apr 19, 2019

        $snippet = (new WidgetBuilder(SnippetWidget::class))
            ->setTemplate('*foo*')
            ->setTarget(Target::END_OF_BODY)
			->getWidget();

then widgets can stay immutable :)

@JarJak JarJak added the topic: DX label Apr 19, 2019

@JarJak JarJak added this to the Bolt 4.1 milestone Apr 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.