Symfony Station Communiqué - 29 April 2022. A look at Symfony, PHP, and Cybersecurity News!
Tags: symfony, php, cybersecurity, drupal
Published: 2022-04-29 17:04:26

[This article originally appeared on Symfony Station](https://www.symfonystation.com/Symfony-Station-Communique-29-April-2022), your source for cutting-edge Symfony and PHP news.

Welcome to this week's Symfony Station Communiqué. It's your weekly review of the essential news in the Symfony and PHP development communities.

DrupalCon Portland was this week, so there was lots of news about Drupal 10. There was plenty from Symfony as well.

Take your time and enjoy the items most valuable to you.

Thanks to Javier Eguiluz and Symfony for sharing [our last communiqué](https://www.symfonystation.com/Symfony-Station-Communique-22-April-2022) in [their Week of Symfony](https://symfony.com/blog/a-week-of-symfony-799-18-24-april-2022).

**Please note that links will open in a new browser window. My opinions will be in bold.**

## Symfony

As always, we will start with the official news from Symfony.

Highlight -> “This week, Symfony development focused on the upcoming Symfony 6.1
 version, finishing some new features for it and polishing its already merged new features.”

[A Week of Symfony #799 (18-24 April 2022)](https://symfony.com/blog/a-week-of-symfony-799-18-24-april-2022)

There were two release announcements:

[Symfony 6.0.8 released](https://symfony.com/blog/symfony-6-0-8-released)

[Symfony 6.1.0-BETA2 released](https://symfony.com/blog/symfony-6-1-0-beta2-released)

Javier Eguiluz continues to update us on what’s coming in 6.1 with:

[New in Symfony 6.1: Improved Routing Requirements and UTF-8 Parameters](https://symfony.com/blog/new-in-symfony-6-1-improved-routing-requirements-and-utf-8-parameters?utm_source=Symfony+Blog+Feed&utm_medium=feed)

[New in Symfony 6.1: Serializer Context Builders](https://symfony.com/blog/new-in-symfony-6-1-serializer-context-builders)

[New in Symfony 6.1: Draft Emails](https://symfony.com/blog/new-in-symfony-6-1-draft-emails)

This item is self-explanatory.

[More speakers and talks announced at SymfonyWorld Online 2022 Summer Edition](https://symfony.com/blog/more-speakers-and-talks-announced-at-symfonyworld-online-2022-summer-edition)

SymfonyCasts announced, “We’ve got a FRESH tutorial for you this week: the one where we upgrade our Symfony 5 app to Symfony 6.... without breaking anything!”

[This week on SymfonyCasts](https://5hy9x.r.ag.d.sendibm3.com/mk/mr/u3udDfxgmKp3cJHV6_b1wAPPIEEbBfJGEmPB4zfxmCURf_niTqMQAOyvi2wEXK8TgWVL-omyvROEKLv5bDS_fyAOBfsvu5O4Ua-kd_FhQUynO4082GVPx5iYp45jCAMyBTooT6ySUw)

## Featured Item

![https://symfonystation.com/sites/default/files/inline-images/Featured-Item_1_0.png](https://symfonystation.com/sites/default/files/inline-images/Featured-Item_1_0.png)

Speaking of SymfonyCasts, this week we will toot our own horn as the saying goes.

And speaking of Toots, you may already [follow us on Twitter at @symfonfystation](https://twitter.com/symfonystation). And since it may be turning into Shitter, we are now on Mastodon as well at [@symfonystation@phpc.social](https://phpc.social/web/@symfonystation). 

Consider joining the [@phpc.social](https://phpc.social/web/home) instance. The home to your toots does not offer reach (yet), but it does offer authenticity and civility. More on this is at the bottom of this communiqué.

Plus, it’s elephant-like. ;)

Back to our article, it explores and reviews SymfonyCast’s “Harmonious Development with Symfony 6” tutorial course in detail. Best of all, the course and the review are free. They are a fantastic way to introduce yourself to the Symfony programming framework and the official learning platform.

### **[A review of SymfonyCast’s Free “Harmonious Development with Symfony 6” Course](https://www.symfonystation.com/Harmonious-Development-Symfony-Course-Review)**

### This Week

More tooting. 

[Exploring the Symfony Ecosystem](https://flipboard.com/@mobileatom/exploring-the-symfony-ecosystem-toducsfunqjtu93h) on Flipboard.

Grégoire Hébert notes, “If you happen to read the service tag mechanism in the Symfony documentation, you'll discover that any service can be defined along with a tag.

Service tags are a way to tell Symfony or other third-party bundles that your service should be registered in some special way.”

[[Symfony] Inject a tagged iterator in a more natural way](https://knot.gheb.dev/blog/sf-inject-tagged-iterator/)

Drupal announced:

[Drupal Core News: Drupal 10 will be released December 14, 2022](https://www.drupal.org/about/core/blog/drupal-10-will-be-released-december-14-2022)

[Drupal.org blog: What’s new on Drupal.org - Q1 2022](https://www.drupal.org/drupalorg/blog/whats-new-on-drupalorg-q1-2022)

Acquia has a new tool for monitoring the transition to 10.

[New Drupal 10 readiness dashboard on dev.acquia.com](https://dev.acquia.com/blog/new-drupal-10-readiness-dashboard-devacquiacom)

Lullabot looks at:

[The Present and Future of Drupal’s Administrative Interface](https://www.lullabot.com/articles/present-and-future-drupals-administrative-interface)

Verity-Thinks writes, “A content management system (CMS) for editors that generates a static site optimized for speed and security? Why not! Many static-site generators still require technical knowledge and/or developer intervention. So, the idea of offering our clients a Drupal CMS to manage their site was definitely enticing. It was especially attractive given we could (comparatively) forget about security for the resulting site.

Inspired by emerging [WordPress-as-a-Static-Services](https://href.li/?https://www.strattic.com/), the team agreed to explore and build a Drupal-as-a-Static-Service proof of content (POC) for some of our existing Drupal sites.”

[Drupal-as-a-Static-Service](https://blog.veritythink.com/post/682509776492658688/drupal-as-a-static-service)

Centarro says, “While many Drupal developers have at least *some* eCommerce experience, the number of people in our community who make it their primary focus is rather small. This isn't surprising, given Drupal is most often used as a CMS, not an eCommerce platform. However, it *does* mean that when you encounter an eCommerce opportunity, you may not be making the most effective pitch you can to win the merchant's business.

One way to improve your pitch is to make sure you're using the same vocabulary to describe eCommerce features and concepts as the rest of the eCommerce industry.”

[The ABCs of PDPs and PLPs](https://www.centarro.io/blog/abcs-pdps-and-plps)

Continuing with eCommerce, Khrystyna Oliinyk shows us:

[How to Easily Import Orders from Magento to Your Software](https://dev.to/khrystyna_oliinyk_97b06d1/how-to-easily-import-orders-from-magento-to-your-software-4o37)

### Last Week

### This Year

Matt Glaman writes, “I recently did a deep dive into command authoring with Drush, which is where I discovered two amazing new features: auto-discovery of commands via autoloading and the addition of attributes for defining your commands.”

[Writing Drush commands with PHP attributes](https://mglaman.medium.com/writing-drush-commands-with-php-attributes-d32c3d95a113)

Gary Clarke has a YouTube series on building a Microservice with with Symfony Framework (version 6). He says, “In this introduction we'll look at microservice architecture and the benefits of its use.”

[Create a Microservice with Symfony Part 1: Introduction (Symfony 6 Tutorial 2022)](https://www.youtube.com/watch?v=B0o9FzuDiuk)

![https://symfonystation.com/sites/default/files/inline-images/php-logo_4.png](https://symfonystation.com/sites/default/files/inline-images/php-logo_4.png)

## PHP

### This week

The PHP Foundation provides its first roundup of its efforts to maintain, improve, and grow PHP.

[PHP Roundup #1 - PHP Foundation](https://opencollective.com/phpfoundation/updates/php-roundup-1)

Simply Stef continues her series of articles called [PHP 101 Fundamentals](https://medium.com/@simply_stef/php-101-fundamentals-ba1b59ebe703). It includes this helpful one.

[PHP 101: Loops](https://medium.com/@simply_stef/php-101-loops-631b11235850)

Plus this.

[Getting to grips with Regular Expressions [Regex]](https://medium.com/@simply_stef/getting-to-grips-with-regular-expressions-regex-eaaa25a3344b)

Brent explores:

[What's new in PHP 8.2](https://stitcher.io/blog/new-in-php-82)

Rahoul Gohil writes, “In a previous article, I got a good response about the mistakes that people made in PHP**.** There I forgot to mention the most common mistake made by many developers out there. They write nested queries inside the while loop of PHP.”

[Avoid Nested Queries in PHP Loop](https://medium.com/@rahulgohil08/avoid-nested-queries-in-php-loop-85ca5e287eb6)

Lucas Pereyra notes, “PHP __sleep and __wakeup methods are magic methods (methods that PHP will invoke during special moments or cases) that PHP provides for dealing with serialization/deserialization of class instances (objects) during runtime. Serializing an object basically means creating a string representation of that object, so that it can be temporarily stored or saved (e.g. dumping it into a text file) and restored later.”

[PHP __sleep and __wakeup magic methods: How and when to use them?](https://medium.com/@lukaspereyra8/php-sleep-and-wakeup-magic-methods-how-and-when-to-use-them-938591584bdc)

Abdlrahman Saber wants you to:

[Stop using regular exceptions in PHP!](https://abdlrahmansaber.medium.com/stop-using-regular-exceptions-in-php-e6aed2629dce)

Viktor Daróczi continues his series on functional PHP programming with:

[The Irresistible Container — Functional Programming in PHP (Part 6)](https://auxiliaire.medium.com/the-irresistible-container-functional-programming-in-php-part-6-8761802cfa0a)

Freek.dev says, “PHP is a wonderful dynamic language that's capable of many cool things. I recently stumbled upon something quite fantastic that I want to share with you.”

[Creating PHP interfaces, traits, and classes dynamically at runtime](https://freek.dev/2237-creating-php-interfaces-traits-and-classes-dynamically-at-runtime)

Doeken.org notes, “The Middleware Pattern allows you to easily change the input and output of an action.”

[How the PHP Middleware Pattern works and can easily be applied](https://doeken.org/blog/middleware-pattern-in-php)

Sanasar Yuzbashyan writes, “we will look on how we can add a very powerful dd() function to any PHP project in just a few steps. I think you will agree with me that this is much more convenient than var_dump()  or print_r().”

[The dd() function in each PHP project](https://sanasar-yuzbashyan.medium.com/the-dd-function-in-each-php-project-56750d3701bf)

Boris DeBot explores installing WSL2 for the LAMP stack.

[Installation de WSL 2 et de la pile logicielle LAMP](https://medium.com/@bdebot-dev/installation-de-wsl-2-et-de-la-pile-logicielle-lamp-d79ab54c1beb)

And we have this announcement:

[PHPStan 1.6.0 With Conditional Return Types and More!](https://phpstan.org/blog/phpstan-1-6-0-with-conditional-return-types)

### Last Week

Matthias Noback says, “I was tweeting something about having separate "DDD" and "ORM" entities in a project in a project, and that I don't understand this. There were some great comments and questions, thanks a lot for that! To be honest, I understand more about it now. In this article I'll try to provide some more information about this.”

[DDD entities and ORM entities](https://matthiasnoback.nl/2022/04/ddd-entities-and-orm-entities/)

![https://symfonystation.com/sites/default/files/inline-images/code-logo_3.jpeg](https://symfonystation.com/sites/default/files/inline-images/code-logo_3.jpeg)

## Other

[Please visit our Support Ukraine page](https://www.symfonystation.com/Support-Ukraine) to learn how you can help kick Russia out of Ukraine (eventually).

### The cyber response to Russia’s War Crimes

NBC reports how:

[From office work to drone drops: Ordinary Ukrainians join wartime supply effort](https://www.nbcnews.com/news/world/ukraine-russia-war-ordinary-ukrainians-join-war-effort-drones-offices-rcna25463)

Montana Public Radio asks:

[How does Ukraine keep intercepting Russian military communications?](https://www.mtpr.org/2022-04-26/how-does-ukraine-keep-intercepting-russian-military-communications)

And The Verge asks:

[They’ve leaked terabytes of Russian emails, but who’s reading?](https://www.theverge.com/2022/4/22/23036079/russian-emails-leaked-ddosecrets)

The Guardian shows how:

[The artists of Ukraine find their voice in a cry of resistance](https://www.theguardian.com/world/2022/apr/23/the-artists-of-ukraine-find-their-voice-in-a-cry-of-resistance)

Wired reports that:

[Ukraine War Prompts Europe's New Emergency Rules for the Internet](https://www.wired.co.uk/article/europe-digital-services-act)

### The Evil Empire Strikes Back

Axios covers this announcement:

[Microsoft: Russia has conducted hundreds of cyberattacks against Ukraine](https://www.axios.com/microsoft-russia-ukraine-invasion-cyber-12c8aa49-e1d6-40f9-aa13-962baa935acd.html?utm_source=twitter&utm_medium=social&utm_campaign=editorial&utm_content=world-russiaukraine)

This ZDNet article shows Evil is evil, even to itself.

[Bronze President spies on Russian targets as Ukraine invasion continues](https://www.zdnet.com/article/bronze-president-pivots-to-russian-european-targets-amidst-ukraine-invasion/)

### Cybersecurity

TechRepublic asks:

[OAuth 2.0: What is it and how does it work?](https://www.techrepublic.com/article/oauth-2-0-what-is-it/)

VentureBeat reports that:

[Dangerous malware is up 86%: Here’s how AI can help](https://venturebeat.com/2022/04/23/dangerous-malware-is-up-86-heres-how-ai-can-help/)

TechRadar reports that:

[APIs are becoming a cybersecurity disaster zone](https://www.techradar.com/news/apis-are-becoming-a-cybersecurity-disaster-zone)

GitHub says, “Do you worry that a CVE will hurt the reputation of your project? In reality, CVEs are a tracking number, and nothing more. Here's how we think of them at GitHub.”

[Removing the stigma of a CVE](https://github.blog/2022-04-22-removing-the-stigma-of-a-cve/)

Inc. opines, “Keeping your networks secure protects us all.”  

**We agree.**

[Good Cyber Hygiene is a Civic Duty](https://www.inc.com/kurtis-minder/good-cyber-hygiene-is-a-civic-duty.html?cid=sf01001)

I just bought Mozilla’s VPN this week, so of course, I ran across this afterward.

[Microsoft readies a built-in VPN for Edge powered by Cloudflare](https://www.zdnet.com/article/microsoft-readies-a-built-in-vpn-for-edge-powered-by-cloudflare/)

### More

TechCrunch reports that:

[The rise of defense tech is bringing Silicon Valley back to its roots](https://social.techcrunch.com/2022/02/05/the-rise-of-defense-tech-is-bringing-silicon-valley-back-to-its-roots/?curator=MediaREDEF)

Taylor Hunt has this fantastic article:

[Routing: I’m not smart enough for a SPA](https://dev.to/tigt/routing-im-not-smart-enough-for-a-spa-5hki)

If you read the featured item you will find the article below is one I definitely need to read. ;)

[The Front-End Developer's Guide to the Terminal](https://www.joshwcomeau.com/javascript/terminal-for-js-devs/)

VentureBeat also reports that:

[Spotify dances to the beat of open source](https://venturebeat.com/2022/04/22/spotify-dances-to-the-beat-of-open-source/)

**By the way, Joe Rogan, if you are reading this hello and fuck off!**

The Overflow writes, “Are the robots coming for your job? You’ve heard this question before (we’ve even asked it before). But in 2022, with AI increasingly ubiquitous in the lives of most coders, the issue feels more pressing.

Given the explosive progress AI has made over the last few years, it might seem like only a question of time (or data) until its mastery over complex, nuanced problems clearly outstrips our own. From Go to poker to StarCraft II, AI has bested humans in plenty of arenas where we were once uncontested champions. Is the same true of coding?

[The robots are coming for (the boring parts of) your job](https://stackoverflow.blog/2022/04/21/the-robots-are-coming-for-the-boring-parts-of-your-job/)

The International JavaScript Conference looks at the Trade-offs and Technologies behind Progressive Web Apps.

[One App to rule them all?](https://javascript-conference.com/blog/one-app-to-rule-them-all/)

Amplitudo looks at the MVC pattern. Which you may be familiar with.

[MVC — Model View Controller](https://medium.com/codex/mvc-model-view-controller-f70ef0fc2e44)

Grant Horwood goes into detail on:

[just enough curl for api devs](https://dev.to/gbhorwood/just-enough-curl-for-api-devs-3i72)

As we mentioned in the Featured Item section, Endgaget says, “We may not yet know exactly what Elon Musk’s takeover of Twitter means for the platform, but one Twitter alternative is already booming as a result of the news. Mastodon, the open-source social media service which bills itself as the “largest decentralized social network on the internet,” has been "exploding" since Musk's acquisition, according to its founder.”

[After Musk's Twitter takeover, an open-source alternative is 'exploding'](https://www.engadget.com/twitter-alternative-mastodon-open-source-021001965.html?src=rss)

There is good news for us web programmers in another VentureBeat item.

[Report: Website usage has grown 57% since 2020](https://venturebeat.com/2022/04/27/report-website-usage-has-grown-57-since-2020/)

That's it for this week. Thanks for making it to the end of another edition. I look forward to sharing next week's Symfony and PHP news with you on Friday.

Please share this post. :) Also, be sure to [join our newsletter list at the bottom of our site’s pages](https://www.symfonystation.com/contact). Joining gets you each week's communiqué in your inbox (a day early). And [follow us on Twitter at @symfonfystation](https://twitter.com/symfonystation). And since it may be turning into Shitter, we are now on Mastodon as well at [@symfonystation@phpc.social](https://phpc.social/web/@symfonystation). Consider joining the [@phpc.social](https://phpc.social/web/home) instance.

Do you own or work for an organization that would be interested in our promotion opportunities? If so, [p](https://www.symfonystation.com/Contact)lease get in touch with us. We’re in our infancy, so it’s extra economical. ;)

More importantly, if you are a Ukrainian company with coding-related products, we can offer free promotion on [our Support Ukraine page](https://www.symfonystation.com/Support-Ukraine). Or, if you know of one, get in touch.

Keep going Symfonistas!

## Author

![https://www.symfonystation.com/sites/default/files/inline-images/Reuben-Blur.jpg](https://www.symfonystation.com/sites/default/files/inline-images/Reuben-Blur.jpg)

### Reuben Walker

Founder
Symfony Station