/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

qafoo.com
| | michaelscodingspot.com

Michael Shpilt's Blog on .NET software development, C#, performance, debugging, and programming productivity
4.7 parsecs

Travel
| |
| | 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.
4.1 parsecs

Travel
| |
| | 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 [...]
4.6 parsecs

Travel
| |
| | symfony.com

In Symfony 4.1 you can get all container parameters in a service injecting one of its constructor arguments with the ParameterBagInterface.
27.2 parsecs

Travel
|