From 0cb8125317c7ff7de1f1c7ec167ac585fe8530dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0rfan=20Evrens?= Date: Fri, 14 Feb 2020 19:56:52 +0300 Subject: [PATCH] =?UTF-8?q?$app=20app=20key'i=20ile=20ula=C5=9F=C4=B1labil?= =?UTF-8?q?ir=20yap=C4=B1ld=C4=B1.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Karma/AppFactory.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Karma/AppFactory.php b/Karma/AppFactory.php index a9a4f25..2f6e6d9 100644 --- a/Karma/AppFactory.php +++ b/Karma/AppFactory.php @@ -19,6 +19,7 @@ public static function create(?ContainerInterface $container = null): App $app = \Slim\Factory\AppFactory::createFromContainer($container); $container->set(App::class, $app); + $container->set('app', $app); $app->getRouteCollector()->setDefaultInvocationStrategy(new ControllerInvoker(new Invoker(new ResolverChain([ // Inject parameters by name first