🇵🇸 Álvaro González on Nostr: Me doing reviews: "No design, just list of instructions in long function. But solves ...
Me doing reviews: "No design, just list of instructions in long function. But solves bug and old code isn't better. Gotta be practical, approved."
Me getting reviews: "No, you cannot create object instances yourself, ever. Best practice is to inject class in constructor and let Symfony load it."
Alright, I'll get rid of new \DateTime() call and build some DateTimeServiceInterface.
(Names changed for rant purposes)
#php #symfony
Me getting reviews: "No, you cannot create object instances yourself, ever. Best practice is to inject class in constructor and let Symfony load it."
Alright, I'll get rid of new \DateTime() call and build some DateTimeServiceInterface.
(Names changed for rant purposes)
#php #symfony