<?php use Auryn\Injector; use Room11\HTTP\Body\TextBody; use Tier\Executable; use Tier\HTTPFunction; use Tier\TierFunction; use Tier\TierHTTPApp; use Room11\HTTP\Request\CLIRequest; use Tier\Exception\RouteNotMatchedException; use Tier\Exception\MethodNotAllowedException; ini_set('display_errors', 'on'); $autoloader = (require __DIR__ . '/../../../vendor/autoload.php'); set_error_handler(['Tier\\HTTPFunction', 'tierErrorHandler']); HTTPFunction::setupShutdownFunction(); ini_set('display_errors', 'off'); // Read application config params $injectionParams = (require_once "injectionParams.php"); // Contains helper functions for the application. require_once "appFunctions.php"; require_once "routes.php"; if (strcasecmp(PHP_SAPI, 'cli') === 0) { $request = new CLIRequest('/cleanupException', 'example.com'); } else { $request = HTTPFunction::createRequestFromGlobals(); } // Create the first Tier that needs to be run. $routingExecutable = new Executable(['Tier\\Bridge\\FastRouter', 'routeRequest'], null, null, 'Room11\\HTTP\\Body'); // Create the Tier application $injector = new Injector(); /** @var $injectionParams \Tier\InjectionParams */