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
Doppar Introduces Frozen Services, Missing in Laravel, Symfony?
How-ToProgramming Languages

Doppar Introduces Frozen Services, Missing in Laravel, Symfony?

via Dev.toFrancisco Navarro20h ago

We just shipped something we have not seen in any PHP framework before. Starting today, Doppar services can be marked #[Immutable] . When they are, the framework configures them freely during application boot — from your config files, environment variables, databases, whatever you need — and then permanently freezes them before the first request is handled. After that point, any attempt to mutate a property on that service throws an exception immediately, no matter where in the application the mutation is attempted. We call this Frozen Services . The Bug Every PHP Developer Has Shipped Here is a scenario you have probably encountered, or will encounter. You register a PaymentService as a singleton. It stores the payment gateway, the tax rate, whether you are in live mode. Standard setup. The service is shared across the request lifecycle — that is the point of singletons. Three months later, a junior developer writes a middleware. They need to temporarily switch the gateway for a speci

Continue reading on Dev.to

Opens in a new tab

Read Full Article
5 views

Related Articles

How-To

Building a Quake PC

Lobsters • 19h ago

7 Simple Coding Tricks That Instantly Improved My Logic
How-To

7 Simple Coding Tricks That Instantly Improved My Logic

Medium Programming • 20h ago

RAG Showdown: Why Telling Your Agent Less Gets You More
How-To

RAG Showdown: Why Telling Your Agent Less Gets You More

Dev.to • 22h ago

The 2026 FBA Ads Playbook: How to Beat Fee Hikes with Dynamic Bidding
How-To

The 2026 FBA Ads Playbook: How to Beat Fee Hikes with Dynamic Bidding

Hackernoon • 23h ago

What Learning Programming/Coding Feels Like: Taming the Pedantic Alien Butler
How-To

What Learning Programming/Coding Feels Like: Taming the Pedantic Alien Butler

Medium Programming • 1d ago

Discover More Articles