New answers tagged dependency-injection
0
votes
How do i inject a global database connection?
An alternative could be to create a separate Mysql user account and only give that account select privileges, hence making it readonly. Then connect to that db user account when running your test..
...
Top 50 recent answers are included
Related Tags
dependency-injection × 1118 × 71
symfony-services × 24
services × 10
9 × 8
forms × 7
entities × 5
testing × 5
plugins × 3
page-controller × 3
10 × 3
database × 2
drush × 2
installation × 2
event-subscribers × 2
views × 1
theming × 1
nodes × 1
blocks × 1
files × 1
routes × 1
caching × 1
path-aliases × 1
configuration × 1
debugging × 1