Fix uglyUrls
This commit is contained in:
parent
fe80308610
commit
9becaeaabe
2 changed files with 3 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
|
@ -26,7 +26,7 @@ try {
|
|||
$container = $app->getContainer();
|
||||
|
||||
// Config.
|
||||
$container['config'] = ConfigFactory::create();
|
||||
$container['config'] = ConfigFactory::create($container);
|
||||
|
||||
// Locales.
|
||||
$container['locale'] = LocaleManagerFactory::create();
|
||||
|
|
Loading…
Reference in a new issue