barth / sylius-celebrate-plugin
POC plugin that show how using stimulus inside a plugin
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:sylius-plugin
Requires
- php: >=8.1
- sylius/sylius: ^2.0
- symfony/framework-bundle: ^6.4|^7.0
README
Disclaimer
This plugin aims to provide a simple way to celebrate special events in your Sylius store.
It has been created for educational purposes and to illustrate how to provide stimulus controllers in a Sylius plugin, following PR I made on sylius (Ease of use stimulus #17923)
It is not intended for production use.
Installation
Open a command console, enter your project directory and execute:
$ composer require barth/sylius-celebrate-plugin $ yarn --force $ yarn encore dev
That's it! No further configuration is required. Twig hooks are already registered thanks to Prepend Extension, and stimulus controllers are automatically registered thanks to Flex.