Location: PHPKode > projects > Radium > radium-master/bootstrap.php
<?php
/*!
 * Radium
 * Copyright (C) 2011-2012 Jack P.
 * https://github.com/nirix
 *
 * This file is part of Radium.
 *
 * Radium is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; version 3 only.
 *
 * Radium is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Radium. If not, see <http://www.gnu.org/licenses/>.
 */

// Fetch the autoloader class
require __DIR__ . "/Autoloader.php";

use Radium\Autoloader;
use Radium\Loader;

// Register the vendor directory
Loader::setVendorDirectory(VENDORPATH);
Loader::registerNamespace('Radium', __DIR__);

// Register common classes for ease of use
Autoloader::aliasClasses(array(
    // Core classes
    '\Radium\Http\Request' => 'Request',
    '\Radium\Output\View'  => 'View',

    // Helpres
    '\Radium\Helpers\HTML' => 'HTML',
    '\Radium\Helpers\Form' => 'Form',
    '\Radium\Helpers\Time' => 'Time',

    // Utilities
    '\Radium\Util\Str' => 'Str'
));

// Register the autoloader
Autoloader::register();
Return current item: Radium