Fix uglyUrls

This commit is contained in:
Pierre Rudloff 2020-10-18 00:59:19 +02:00
parent fe80308610
commit 9becaeaabe
2 changed files with 3 additions and 2 deletions

View file

@ -2,6 +2,7 @@
namespace Alltube;
use Slim\Container;
use Symfony\Component\ErrorHandler\Debug;
/**
@ -15,7 +16,7 @@ class ConfigFactory
* @return Config
* @throws Exception\ConfigException
*/
public static function create()
public static function create(Container $container)
{
$configPath = __DIR__ . '/../config/config.yml';
if (is_file($configPath)) {

View file

@ -26,7 +26,7 @@ try {
$container = $app->getContainer();
// Config.
$container['config'] = ConfigFactory::create();
$container['config'] = ConfigFactory::create($container);
// Locales.
$container['locale'] = LocaleManagerFactory::create();