Commit c21937e5 authored by Nick Sellen's avatar Nick Sellen Committed by Peter Tönnies

Rename a function

parent de9e0fab
......@@ -10,7 +10,7 @@ require __DIR__ . '/../vendor/autoload.php';
/**
* @return Container
*/
function initializeLegacyContainer()
function initializeContainer()
{
$env = $_SERVER['FS_ENV'] ?? 'dev';
$debug = (bool)($_SERVER['APP_DEBUG'] ?? ('prod' !== $env));
......
......@@ -35,7 +35,7 @@ require_once 'config.inc.php';
/* @var $container Container */
global $container;
$container = initializeLegacyContainer();
$container = initializeContainer();
require_once 'lib/inc.php';
......
......@@ -5,7 +5,7 @@ require_once 'config.inc.php';
/* @var $container Container */
global $container;
$container = initializeLegacyContainer();
$container = initializeContainer();
/*
* force only executing on commandline
......
......@@ -17,7 +17,7 @@ class Container extends \Codeception\Module\Db
{
parent::_initialize();
global $container;
$container = initializeLegacyContainer();
$container = initializeContainer();
$this->di = $container;
}
......
......@@ -10,7 +10,7 @@ require_once 'config.inc.php';
/* @var $container Container */
global $container;
$container = initializeLegacyContainer();
$container = initializeContainer();
/* @var $session Session */
$session = $container->get(Session::class);
......
......@@ -9,7 +9,7 @@ require_once 'config.inc.php';
/* @var $container Container */
global $container;
$container = initializeLegacyContainer();
$container = initializeContainer();
if (isset($_GET['app']) && isset($_GET['m'])) {
$app = str_replace('/', '', $_GET['app']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment