PHP Classes

File: app/Config/Addresses.php

Recommend this page to a friend!
  Classes of Steeven Lim   o2system   app/Config/Addresses.php   Download  
File: app/Config/Addresses.php
Role: Example script
Content type: text/plain
Description: Example script
Class: o2system
Start projects using the with O2System Framework
Author: By
Last change:
Date: 4 years ago
Size: 798 bytes
 

Contents

Class file image Download
<?php
/**
 * This file is part of the O2System PHP Framework package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @author Steeve Andrian Salim
 * @copyright Copyright (c) Steeve Andrian Salim
 */

// ------------------------------------------------------------------------

use O2System\Kernel\Http\Message\Uri;
use
O2System\Kernel\Http\Router\Addresses;

/**
 * Router Addresses Configuration
 *
 * @var \O2System\Kernel\Http\Router\Addresses
 */
$addresses = new Addresses();

// ------------------------------------------------------------------------

// Example Route To Default Controller
$addresses->any(
   
'/',
    function () {
        return new \
App\Controllers\Hello();
    }
);