From d037e77fcc0ea1eea267ff241cb04ffc6f697921 Mon Sep 17 00:00:00 2001 From: Mehmet Korkmaz Date: Thu, 20 Jul 2017 15:41:44 +0300 Subject: [PATCH] fixes an issue when getting globals --- config/globals.php | 5 +++-- src/factories/RouterFactory.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/globals.php b/config/globals.php index 6e1dbf1..cdb9307 100644 --- a/config/globals.php +++ b/config/globals.php @@ -2,6 +2,7 @@ declare(strict_types=1); return [ - 'runtime_lang' => defined('RUNTIME_LANG') ?? '', - 'runtime_platform' => defined('RUNTIME_PLATFORM') ?? '' + 'runtime_lang' => defined('RUNTIME_LANG') ? RUNTIME_LANG : '', + 'sys_dir' => defined('SYS_DIR') ? SYS_DIR : '', + ]; \ No newline at end of file diff --git a/src/factories/RouterFactory.php b/src/factories/RouterFactory.php index 4901987..32f8feb 100644 --- a/src/factories/RouterFactory.php +++ b/src/factories/RouterFactory.php @@ -18,7 +18,7 @@ class RouterFactory implements FactoryInterface * @var Router */ private $router; - + public function __invoke(ContainerInterface $container, $requestedName, array $options = null) { /**