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;
|
namespace Alltube;
|
||||||
|
|
||||||
|
use Slim\Container;
|
||||||
use Symfony\Component\ErrorHandler\Debug;
|
use Symfony\Component\ErrorHandler\Debug;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -15,7 +16,7 @@ class ConfigFactory
|
||||||
* @return Config
|
* @return Config
|
||||||
* @throws Exception\ConfigException
|
* @throws Exception\ConfigException
|
||||||
*/
|
*/
|
||||||
public static function create()
|
public static function create(Container $container)
|
||||||
{
|
{
|
||||||
$configPath = __DIR__ . '/../config/config.yml';
|
$configPath = __DIR__ . '/../config/config.yml';
|
||||||
if (is_file($configPath)) {
|
if (is_file($configPath)) {
|
||||||
|
|
|
@ -26,7 +26,7 @@ try {
|
||||||
$container = $app->getContainer();
|
$container = $app->getContainer();
|
||||||
|
|
||||||
// Config.
|
// Config.
|
||||||
$container['config'] = ConfigFactory::create();
|
$container['config'] = ConfigFactory::create($container);
|
||||||
|
|
||||||
// Locales.
|
// Locales.
|
||||||
$container['locale'] = LocaleManagerFactory::create();
|
$container['locale'] = LocaleManagerFactory::create();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue