Magento Blog: Guides and Practical Know-how | Page 149 | mironsoft
Magento Blog
-
Oct 27, 2025
Fibers give PHP code the ability to pause execution at almost any point in the call stack and resume exactly there later, without restructuring the calling logic into callbacks or generators. This article walks through the Fiber class step by step, from start and resume through error handling with throw to a custom cooperative scheduler and the real costs in memory and stack usage.
-
Oct 26, 2025
Sending a date as a plain string looks harmless until two clients expect different formats and the backend ends up duplicating validation. Custom scalars move format and validation into a single, reusable type in the schema, with clear rules for serialization, input parsing, and error cases.
-
Oct 26, 2025
The bundle extension is the mechanism through which a Symfony bundle registers its services in the host container. Compiler passes go one step further and hook directly into the ContainerBuilder after all bundles have loaded, to collect tagged services or modify definitions. This article explains both mechanisms and how they work together.
-
Oct 26, 2025
Handing out a license to all developers and hoping for organic use leads to fragmented, ineffective adoption in most organizations. A structured rollout plan with a pilot group, a champions program, targeted stakeholder communication and gradual scaling turns Claude Code into a fixed part of the engineering organization instead of an unused tool on the license list.
-
Oct 26, 2025
Anyone who does not deliberately test exceptions leaves error handling unverified, which is the most dangerous blind spot in a PHP test suite. PHPUnit provides precise methods to ensure that the correct exception type, the right message, and the correct error code are actually raised.
-
Oct 25, 2025
$(...) and backticks appear to produce the same result at first glance: a command's output gets substituted somewhere else in the script. The difference only shows up with nesting, quoting, and understanding why a variable set inside the substitution vanishes without a trace afterward. This article covers both.
-
Oct 25, 2025
The Symfony dependency injection container is more than a service locator. Decorators let you extend third-party services without touching their code. Compiler passes manipulate the container at build time and automate configurations that would otherwise have to be maintained by hand.
-
Oct 25, 2025
Redis traditionally processes commands in a single thread, which prevents race conditions but only uses a fraction of the CPU power available on modern multi-core servers. KeyDB addresses exactly this point, processing network I/O and command execution across multiple threads simultaneously while positioning itself as a largely compatible alternative to the Redis protocol. This article explains how KeyDB works technically, how compatible it really is, and in which Magento operating scenarios a switch could actually pay off.
-
Oct 25, 2025
GraphQL APIs break many familiar REST testing patterns: a single endpoint, flexible query shapes, and a status code that stays 200 almost regardless of errors. Testing a Magento storefront over GraphQL requires different assertions, robust snapshot strategies, and a clear read on the errors array to reliably validate cart mutations, product queries, and checkout flows.
-
Oct 25, 2025
Unlinked brand mentions were long considered a nice-to-have byproduct without direct ranking value in classic search engine optimization, since no link means no link juice flows. In Generative Engine Optimization this assessment partly reverses, because language models recognize brands as entities and evaluate mention frequency, context and source quality as an independent trust and authority signal, regardless of whether a hyperlink was set.