/explore
|
You are here |
blag.nullteilerfrei.de | ||
| | | | |
tomasvotruba.com
With [Symfony 5 upgrade](/blog/2019/09/09/how-we-upgraded-pehapkari-cz-from-symfony-4-to-5-in-25-days/), we need any *working* Doctrine behaviors. Month later, we have [KnpLabs\DoctrineBehaviors 2.0](/blog/2019/12/30/doctrine-behaviors-2-0-reloaded/#how-do-you-migrate-from-gedmo-stof-to-knplabs-doctrinebehaviors) with full Symfony 5 support. If you used older Doctrine Behaviors, you're covered with Rector migration path. But what if you're using old broken Gedmo? **I'll show you how you can migrate Gedmo to KnpLabs**. |
|
| | | | | ||
| | | | |
tomasvotruba.com
Dependency injection with autowiring is super easy [since Symfony 3.3](/blog/2017/05/07/how-to-refactor-to-new-dependency-injection-features-in-symfony-3-3/). Yet on my mentoring I still meet service locators. Mostly due to traditional registration of Doctrine repositories. The way out from *service locators* to *repository as service* was [described](https://matthiasnoback.nl/2014/05/inject-a-repository-instead-of-an-entity-manager) by many [before](https://medium.com/@adamquaile/composition-over-inheritance-in-doctrine-repositories-f6a53a026f60) and **now we put it into Symfony 3.3 context**. |
|
| | | | | ||
| | | | |
tomasvotruba.com
Do you use PHP 7.4 [typed properties](/blog/2018/11/15/how-to-get-php-74-typed-properties-to-your-code-in-few-seconds/)? Do you know why? I use them, so **I don't have to think and validate the property type** every time. We just know its type or PHP would crash otherwise. Until PHP 7.4 this was not possible and code was kinda crappy. Where are we now with constant type? Do you trust your class constants type? |
|
| | | | | ||
| | | | |
gonzalo123.com
Dependency Injection Containers with PHP. When Pimple is not enough. - Gonzalo Ayuso - Web Architect How to use the component "Dependency Injection Container" from Symfony2 in a standalone PHP application. |
|
| | | |||