PHP Classes

File: www/_Main.php

Recommend this page to a friend!
  Classes of Fernando Val   Springy   www/_Main.php   Download  
File: www/_Main.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Springy
Microframework for Web application development
Author: By
Last change: fix: code standard adjustments
feat: v4.6 implementations
Merge remote-tracking branch 'origin/master' into development
Date: 1 month ago
Size: 705 bytes
 

Contents

Class file image Download
<?php

/*
 * Springy web launcher script.
 *
 * @copyright 2007 Fernando Val
 * @author Fernando Val <[email protected]>
 *
 * @version 6.0.0
 *
 * @codingStandardsIgnoreFile
 */

define('SPRINGY_START', microtime(true));

require
__DIR__ . '/../consts';
// Loads the Composer autoload
require __DIR__ . '/../vendor/autoload.php';

// Load framework configuration
$sysconf = file_exists('sysconf.php') ? require_once 'sysconf.php' : [];

// Define error handlers
error_reporting(E_ALL);
set_exception_handler('springyExceptionHandler');
set_error_handler('springyErrorHandler');

// System start
ob_start();
Springy\Kernel::run($sysconf);

if (
count(ob_list_handlers())) {
   
ob_end_flush();
}