mirror of
https://github.com/friendica/friendica
synced 2025-04-24 00:30:11 +00:00
Add App\Router dependency injection to App
- Moved collectRoutes method from App to App\Router
This commit is contained in:
parent
7383511855
commit
d6d31f43a1
6 changed files with 65 additions and 36 deletions
|
@ -15,6 +15,7 @@ class DBStructureTest extends DatabaseTest
|
|||
{
|
||||
$basePath = BasePath::create(dirname(__DIR__) . '/../../');
|
||||
$mode = new App\Mode($basePath);
|
||||
$router = new App\Router();
|
||||
$configLoader = new ConfigFileLoader($basePath, $mode);
|
||||
$configCache = Factory\ConfigFactory::createCache($configLoader);
|
||||
$profiler = Factory\ProfilerFactory::create($configCache);
|
||||
|
@ -22,7 +23,7 @@ class DBStructureTest extends DatabaseTest
|
|||
$config = Factory\ConfigFactory::createConfig($configCache);
|
||||
Factory\ConfigFactory::createPConfig($configCache);
|
||||
$logger = Factory\LoggerFactory::create('test', $config, $profiler);
|
||||
$this->app = new App($config, $mode, $logger, $profiler, false);
|
||||
$this->app = new App($config, $mode, $router, $logger, $profiler, false);
|
||||
|
||||
parent::setUp();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue