From 217f919560e28444ba5e3983ed362e5093417447 Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Thu, 28 Nov 2019 22:42:33 -0700 Subject: [PATCH] Minor updates to index.php --- index.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 332b289..b63f3f3 100644 --- a/index.php +++ b/index.php @@ -10,12 +10,11 @@ use Slim\Views\Twig; require __DIR__ . '/vendor/autoload.php'; -/** Set some restrictions */ +/** Set file access restrictions */ ini_set('open_basedir', __DIR__); /** Initialize environment variable handler */ -$dotenv = Dotenv::create(__DIR__); -$dotenv->load(); +Dotenv::create(__DIR__)->load(); /** Create the container */ $container = new Container();