/explore
|
You are here |
qafoo.com | ||
| | | | |
michaelscodingspot.com
Michael Shpilt's Blog on .NET software development, C#, performance, debugging, and programming productivity |
|
| | | | | ||
| | | | |
matthiasnoback.nl
Part I: Don't use the standard controller The general belief is that controllers are the most tightly coupled classes in every application. Most of the time based on the request data, they fetch and/or store persistent data from/in some place, then turn the data into HTML, which serves as the response to the client who initially made the request. So controllers are "all over the place", they glue parts of the application together which normally lie very far from each other. This would make them highly coupled: they depend on many different things, like the Doctrine entity manager, the Twig templating engine, the base controller from the FrameworkBundle, etc. |
|
| | | | | ||
| | | | |
brandonsavage.net
PHP more or less has two kinds of dependency injection available: constructor injection, and setter injection. Constructor injection is the process of injecting dependencies through the constructor arguments, like so: The dependencies are injected via the constructor, on object creation, and the object has them from the very beginning. Setter injection is different; instead of [...] |
|
| | | | | ||
| | | | |
symfony.com
In Symfony 4.1 you can get all container parameters in a service injecting one of its constructor arguments with the ParameterBagInterface. |
|
| | | |||