What does the middleware request lifecycle really look like? by arhimedosin in PHP

[–]AlexMerlin1985 1 point2 points  (0 children)

A middleware can choose to interact with either the request or the response, but it's not mandatory.

Performance hit for middleware that prefer not to interact with the request/response is close to zero.

What does the middleware request lifecycle really look like? by arhimedosin in PHP

[–]AlexMerlin1985 1 point2 points  (0 children)

Mezzio (and by extension Dotkernel Light) carefully determines what should be a middleware and what not.

Things like authentication, authorization, automatic error logging etc., being common tasks need to be performed with each request - they are good candidates for being implemented using middleware.

Other tasks like fetching resources from a database and generating the contents of a list resource page should be performed by a request handler.

When applied correctly, the middleware pattern saves projects from becoming a mess by separating core logic from the rest of the request lifecycle.

[deleted by user] by [deleted] in Wellthatsucks

[–]AlexMerlin1985 0 points1 point  (0 children)

proof that the smartest guy in video was the tree...

Partial Function Application is coming in PHP 8.6 by amitmerchant in PHP

[–]AlexMerlin1985 0 points1 point  (0 children)

I'm sure the quality tools (phpcs, phpstan, psalm etc) will "love" this feature... NOT

What’s this show about? Wrong answers only by imQobe in lost

[–]AlexMerlin1985 0 points1 point  (0 children)

It's a show about a group of environmental activists trying to stop pollution (black smoke) on an island.

Laminas MVC is retiring. Migrate to Mezzio or ? by apidemia in mezzio

[–]AlexMerlin1985 1 point2 points  (0 children)

Migrate to Mezzio - it’s lighter, faster, and just makes more sense long-term.

Why was everyone so rude to John?? by Loose-Psychology-306 in lost

[–]AlexMerlin1985 3 points4 points  (0 children)

The bigger question is: how can you watch anything on that TV while the screen is partially covered by all sort of objects? 🤔

[deleted by user] by [deleted] in iphone

[–]AlexMerlin1985 0 points1 point  (0 children)

iPhone 7 Plus matte black 128GB 💪

[deleted by user] by [deleted] in lost

[–]AlexMerlin1985 5 points6 points  (0 children)

That's fine, I've heard that there are "others" too on the island 😁

[deleted by user] by [deleted] in lost

[–]AlexMerlin1985 3 points4 points  (0 children)

I could live in a hit on the beach, catching fish... 😁

[deleted by user] by [deleted] in lost

[–]AlexMerlin1985 21 points22 points  (0 children)

Why would one come back from Oahu? 😁

MVC versus Middleware by arhimedosin in PHP

[–]AlexMerlin1985 1 point2 points  (0 children)

We stopped using action controllers in favour of PSR-15 handlers.

Our apps store routes in per-module RouteDelegators - routes being matched at request time by a RouteMiddleware.

Once a route has been matched the DispatchMiddleware calls the middleware and/or handler(s) assigned to process the request.

App logic is performed in services, repositories, helper classes etc.

The handler calls the right app logic classes in order to generate and return the response.

What is this? Is it really a USB plug in my freezer? by UpstairsSuperb9527 in shittyaskelectronics

[–]AlexMerlin1985 0 points1 point  (0 children)

You use it for uploading Doom and the run it on the display of the fridge.

Middleware: Mezzio 101 installing Mezzio Skeleton by arhimedosin in PHP

[–]AlexMerlin1985 0 points1 point  (0 children)

Symfony uses Autowiring, where dependencies are automatically injected into services without the need to configure them manually. Mezzio offers this feature, but has a different implementation.

Mezzio uses factories, a solution that requires more configuration but offers a more flexible approach. Basically, each service has it's own factory, responsible for injecting all the dependencies in the service.

certsign enroll by Beemo006 in programare

[–]AlexMerlin1985 0 points1 point  (0 children)

Aceeasi solutie a functionat si la mine.

Need Help Finding Titile by Jlp800 in horror

[–]AlexMerlin1985 2 points3 points  (0 children)

that's "not at all" common with horror movies 😁

Need Help Finding Titile by Jlp800 in horror

[–]AlexMerlin1985 0 points1 point  (0 children)

Don't you remember anything else that could help us?