mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Use configuration property accessor
This commit is contained in:
@@ -142,7 +142,7 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
|
||||
});
|
||||
|
||||
$app['url_generator'] = $app->share($app->extend('url_generator', function ($generator, $app) {
|
||||
$host = parse_url($app['configuration']['main']['servername'], PHP_URL_HOST);
|
||||
$host = parse_url($app['conf']->get(['main', 'servername']), PHP_URL_HOST);
|
||||
$generator->setContext(new RequestContext('', 'GET', $host));
|
||||
|
||||
return $generator;
|
||||
@@ -183,7 +183,7 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
|
||||
});
|
||||
|
||||
$app['url_generator'] = $app->share($app->extend('url_generator', function ($generator, $app) {
|
||||
$host = parse_url($app['configuration']['main']['servername'], PHP_URL_HOST);
|
||||
$host = parse_url($app['conf']->get(['main', 'servername']), PHP_URL_HOST);
|
||||
$generator->setContext(new RequestContext('', 'GET', $host));
|
||||
|
||||
return $generator;
|
||||
|
Reference in New Issue
Block a user