Esempio n. 1
0
 /**
  * Deal with the PHP's execution errors
  *
  * @param int
  * @param string
  * @param string
  * @param int
  */
 public static function Error($severity, $message, $file, $line)
 {
     Kernel::LogError("{$file} at line {$line}: {$message}");
     $backtrace = print_r(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS), true);
     Kernel::LogError($backtrace);
 }
Esempio n. 2
0
#! /usr/bin/php
<?php 
require_once 'App' . DIRECTORY_SEPARATOR . 'Core' . DIRECTORY_SEPARATOR . 'Constants.php';
require_once 'App' . DS . 'Core' . DS . 'Autoload.php';
use App\Core\Autoload;
use App\Core\Error;
use App\Core\Kernel;
Autoload::Register();
Error::Register();
Kernel::Init($argv);
Kernel::Start();
Esempio n. 3
0
<?php

use App\Core\Kernel;
use Symfony\Component\HttpFoundation\Request;
ini_set('session.cache_limiter', 'public');
session_cache_limiter(false);
if (!isset($_SESSION)) {
    session_start();
}
//unset($_SESSION['nmkd_form']);
$autoloader = (require_once __DIR__ . '/vendor/autoload.php');
$request = Request::createFromGlobals();
$kernel = Kernel::createFromRequest($request, $autoloader);
$kernel->handle($request)->send();