FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Building a Sylius Plugin with Webhook Sync, Service Decoration, and kernel.terminate
How-ToWeb Development

Building a Sylius Plugin with Webhook Sync, Service Decoration, and kernel.terminate

via Dev.to WebdevRosen Hristov1mo ago

I already had a webhook sync module for Drupal Commerce . Drupal uses entity hooks, queue workers, and alter hooks. For Sylius, none of that applies. Sylius sits on Symfony. That means event subscribers, service decoration, console commands, and kernel.terminate . The plugin needed to feel like a Symfony bundle, not a ported Drupal module. Two Event Systems for Two Entity Types Products in Sylius are proper Sylius resources. They fire resource events: sylius.product.post_create , sylius.product.post_update , sylius.product_variant.post_create , etc. An event subscriber catches these: class ProductEventSubscriber implements EventSubscriberInterface { public static function getSubscribedEvents (): array { return [ 'sylius.product.post_create' => 'onProductCreate' , 'sylius.product.post_update' => 'onProductUpdate' , 'sylius.product.pre_delete' => 'onProductDelete' , 'sylius.product_variant.post_create' => 'onVariantCreate' , 'sylius.product_variant.post_update' => 'onVariantUpdate' , 'sy

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
21 views

Related Articles

The Real Cost of Abstractions in .NET
How-To

The Real Cost of Abstractions in .NET

Medium Programming • 18h ago

Stop Learning Frameworks — You’re Wasting Your Time
How-To

Stop Learning Frameworks — You’re Wasting Your Time

Medium Programming • 18h ago

How to Self-Host n8n in 2026: VPS vs Managed Hosting (Full Comparison)
How-To

How to Self-Host n8n in 2026: VPS vs Managed Hosting (Full Comparison)

Dev.to • 19h ago

I Built a Mac App to Fix Android File Transfer — Here’s What I Learned
How-To

I Built a Mac App to Fix Android File Transfer — Here’s What I Learned

Medium Programming • 19h ago

How-To

What I learned about X-HEEP by Benchmarking

Medium Programming • 20h ago

Discover More Articles