PHP Classes

File: app/routes.php

Recommend this page to a friend!
  Classes of Felix Ivan Romero Rodríguez   PHP Web Socket Chat   app/routes.php   Download  
File: app/routes.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: 679 bytes
 

Contents

Class file image Download
<?php
/**
 * Created by PhpStorm.
 * User: felito
 * Date: 2/18/2016
 * Time: 3:48 PM
 */
use Symfony\Component\Routing;
use
Symfony\Component\HttpFoundation\Response;
use
Symfony\Component\HttpFoundation\Request;

$routes = new Routing\RouteCollection();
$routes->add('/message', new Routing\Route('/message', array(
   
'_controller' => 'MyApp\\Controller\\MessageController::indexAction',
)));

$routes->add('/user', new Routing\Route('/user', array(
   
'_controller' => 'MyApp\\Controller\\UserController::indexAction',
)));

$routes->add('/log', new Routing\Route('/log', array(
   
'_controller' => 'MyApp\\Controller\\LogController::indexAction',
)));

return
$routes;