PHP Classes

File: web/front.php

Recommend this page to a friend!
  Classes of Felix Ivan Romero Rodríguez   PHP Web Socket Chat   web/front.php   Download  
File: web/front.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Web Socket Chat
Chat system using Websockets or AJAX requests
Author: By
Last change:
Date: 7 years ago
Size: 650 bytes
 

Contents

Class file image Download
<?php
/**
 * Created by PhpStorm.
 * User: felito
 * Date: 2/18/2016
 * Time: 2:56 PM
 */
////todo esta clase forma parte del framework orignal chanic
$loader = require dirname(__DIR__) . '/vendor/autoload.php';
$routes = require dirname(__DIR__) . '/app/routes.php';
$sc = require dirname(__DIR__) . '/app/container.php';


use
Symfony\Component\DependencyInjection\ContainerBuilder;
use
Symfony\Component\HttpFoundation\Request;
use
Symfony\Component\HttpFoundation\Response;

$request = Request::createFromGlobals();
/**
 * @var ContainerBuilder $sc
 * @var Response $response
 */
$response = $sc->get('core')->handle($request);
$response->send();