sarah, to php
@sarah@phpc.social avatar

I have a FREE book on object-oriented programming available for you to download and enjoy. It's my way of giving back to the community. Check it out: https://masteringobjectorientedphp.com

chrastecky,
@chrastecky@phpc.social avatar

@sarah Giving back by harvesting personal data, what a great way to do that!

mobileatom, to php
@mobileatom@flipboard.com avatar

Air Traffic Control: Routing microservices with a single Nginx server. #NGINX #PHP

https://sarah-savage.com/air-traffic-control-routing-microservices-with-a-single-nginx-server/?utm_source=flipboard&utm_medium=activitypub

Posted into SYMFONY FOR THE DEVIL @symfony

mobileatom, to php
@mobileatom@flipboard.com avatar

Annotated Container Without Attributes.

https://www.cspray.io/?utm_source=flipboard&utm_medium=activitypub

Posted into SYMFONY FOR THE DEVIL @symfony

mobileatom, to php
@mobileatom@flipboard.com avatar
cspray, to php
@cspray@phpc.social avatar

Couple weeks ago speaking with @ocramius about Annotated Container. He brought up something about Attributes I had heard a few times before. Something along the lines of:

"I don't want container wiring code littered throughout my codebase."

So, I wrote a blog article that talks about how Attributes aren't really the point of Annotated Container and how you can use the library with no Attributes or highly limit their spread through your code.

https://www.cspray.io/blog/annotated-container-without-attributes/

-container

dantleech,
@dantleech@fosstodon.org avatar

@cspray @edorian one stronger feeling I have at the moment is that I don't want my domain (or "good") code to be have symbols that couple it to a framework or DI container. So prefer orchestrating "externally" to the class. I.e. aiming for "closed for modification" even if it's modifying an attribute...

cspray,
@cspray@phpc.social avatar

@dantleech @edorian From my conversations, this appears to be a popular line of thinking. One I understand the reasoning for and I hope my article shows AC can support!

I'm planning on continuing to eat my own dogfood with AC and create an app using the per-module DefinitionProvider design. Hopefully I might discover ways that the library can be improved when using this style of DI config.

sarah, to php
@sarah@phpc.social avatar

Do you rehearse your disaster recovery plans?

Have you ever stood up, from scratch, a completely new version of your application in a production-ready state?

If you haven't, you should.

You may never need to fully stand up a complete production instance, but what happens if a part goes down like your database, your webservers, or your jobs? Are you prepared for emergencies?

Practice makes perfect, especially in high-pressure situations. So practice!

michael,
@michael@thms.uk avatar

@sarah I had to do this some time last year. Proud to say: it only took us a few hours, in part because we had copious backups and had trained for this. 👍

mrbase,
@mrbase@phpc.social avatar

@sarah We do that, several times a year, one where we restore crashed servers, one where we restore single installations, one where we restore multiple, one for hot backup, one for cold backups.
Everytime we review the procedures, and fix any changes we encounter.

symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar
marmelab, to php
@marmelab@mastodon.social avatar

🎉 Exciting news! Marmelab is sponsoring the API Platform Conference 2024, the flagship event dedicated to the API Platform framework!

Join us for 2 days of talks by leading experts in #PHP, #JavaScript & #API.

📅 19 & 20 September
📍 Lille, France

Learn more: https://api-platform.com/fr/con/2024/

@cooptilleuls

#APIPlatformCon2024 #TechConference #React #Laravel #Caddy #Xdebug #Symfony #APIPlatform

ramsey, to php
@ramsey@phpc.social avatar

This is a pretty cool package, if you use with and . https://github.com/ajgarlag/AjglBreakpointTwigExtension

ramsey,
@ramsey@phpc.social avatar

@jaapio I did not know this. How do you set the breakpoints in the templates?

ramsey,
@ramsey@phpc.social avatar

@jaapio Never mind. That post shows how. 🙂

mobileatom, to Symfony
@mobileatom@me.dm avatar

Symfony Station covers the essential news in the Symfony, Drupal, PHP, Cybersecurity, and Fediverse development communities with a focus on protecting democracy. Please make a small donation to help cover our out-of-pocket costs. Our labor is provided free of charge to support the communities we write about. https://liberapay.com/SymfonyStation/donate

symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar

Symfony Station covers the essential news in the Symfony, Drupal, PHP, Cybersecurity, and Fediverse development communities with a focus on protecting democracy. Please make a small donation to help cover our out-of-pocket costs. Our labor is provided free of charge to support the communities we write about.

https://liberapay.com/SymfonyStation/donate

https://newsletter.mobileatom.net/please-make-a-small-donation/

mobileatom, to php
@mobileatom@flipboard.com avatar

New Proposed Array Find Functions in PHP 8.4.

https://laravel-news.com/php-8-4-array-find-functions?utm_source=flipboard&utm_medium=activitypub

Posted into SYMFONY FOR THE DEVIL @symfony

michael,
@michael@thms.uk avatar

@mobileatom @symfony

I really do like it. But I still think it should be called array_first as that’s really what it is …

alexstandiford, to wordpress
@alexstandiford@fosstodon.org avatar

I'm looking into integrating something that can help me capture aggregate, and anonymous error monitoring using Sentry for a distributed WordPress plugin. Obviously this would be opt-in.

Is there someone out there who has actually done this who I can chat with? Looking for some insight on things to look out for, how to approach it, etc.

travislopes,
@travislopes@mastodon.social avatar

@alexstandiford I don’t remember how since it’s been a long time since I set it up, but you can configure Sentry to dump specific parameters. I imagine you could do the inverse with an allow list.

alexstandiford,
@alexstandiford@fosstodon.org avatar

@travislopes Oh that's really good to know.

I was getting some pushback regarding privacy in some other circles, and it kinda freaked me out a bit. I really think having this data would be valuable though, so I want to figure it out.

mobileatom, to Symfony
@mobileatom@me.dm avatar

Explore the September 22, 2023 @symfonystation Communiqué of Symfony, Drupal, PHP, Fediverse, and Cybersecurity news for evergreen content. https://symfonystation.mobileatom.net/Symfony-Station-Communique-22-September-2023 🇺🇦

jclermont, to php
@jclermont@phpc.social avatar

Ever run into a timeout from a Composer script in CI? Test coverage reports are a super common example for me.

Here's how to prevent that, along with a gotcha if you're calling scripts within scripts. https://masteringlaravel.io/daily/2024-05-21-disabling-composer-timeout-with-nested-scripts

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • rosin
  • thenastyranch
  • GTA5RPClips
  • tester
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • everett
  • Youngstown
  • mdbf
  • slotface
  • kavyap
  • JUstTest
  • cisconetworking
  • khanakhh
  • normalnudes
  • osvaldo12
  • cubers
  • tacticalgear
  • Durango
  • ethstaker
  • modclub
  • anitta
  • provamag3
  • Leos
  • lostlight
  • All magazines