-
Notifications
You must be signed in to change notification settings - Fork 10
feat(admin): dispatch event on file select for another live component #32
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # Copilot Instructions for SyliusMediaManagerPlugin | ||
|
|
||
| ## General Guidelines | ||
| - Follow the Sylius 2.x and Symfony 7.x best practices for PHP code. | ||
| - Use strict types and type hints wherever possible. | ||
| - All new code must be PSR-12 compliant and pass PHPStan and ECS checks. | ||
| - Use dependency injection for all services and avoid using service locators. | ||
| - Write clear, concise, and well-documented code. | ||
| - Use English for all code comments, variable names, and documentation. | ||
|
|
||
| ## Commit Messages | ||
| - Use clear, descriptive commit messages in English. | ||
| - Reference related issues or tickets when applicable. | ||
|
|
||
| ## Pull Requests | ||
| - Ensure all checks pass before requesting review. | ||
| - Provide a clear description of the changes and testing steps. | ||
|
|
||
| --- | ||
|
|
||
| For more details, refer to the project README and Sylius/Symfony documentation. |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -97,5 +97,9 @@ public function setFilePath( | |||||
| return; | ||||||
| } | ||||||
| $this->filePath = $filePath; | ||||||
| $this->emit('media-manager:file-selected', [ | ||||||
|
||||||
| $this->emit('media-manager:file-selected', [ | |
| $this->dispatch('media-manager:file-selected', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's Symfony live component not Livewire
Uh oh!
There was an error while loading. Please reload this page.