Extract interaction with config.php into SystemConfig
* introduce SystemConfig to avoid DI circle (used by database connection which is itself needed by AllConfig that itself contains the methods to access the config.php which then would need the database connection - did you get it? ;)) * use DI container and use that method in legacy code paths (for easier refactoring later) * create and use getSystemConfig instead of query() in DI container
Showing
- lib/private/allconfig.php 13 additions, 3 deletionslib/private/allconfig.php
- lib/private/db/connectionfactory.php 10 additions, 10 deletionslib/private/db/connectionfactory.php
- lib/private/server.php 19 additions, 4 deletionslib/private/server.php
- lib/private/systemconfig.php 49 additions, 0 deletionslib/private/systemconfig.php
- lib/public/config.php 7 additions, 3 deletionslib/public/config.php
- tests/lib/user/user.php 11 additions, 2 deletionstests/lib/user/user.php
Loading
Please register or sign in to comment