<?php

// Load in the Autoloader
require COREPATH.'classes'.DIRECTORY_SEPARATOR.'autoloader.php';
class_alias('Fuel\\Core\\Autoloader', 'Autoloader');

// Bootstrap the framework DO NOT edit this
require COREPATH.'bootstrap.php';


Autoloader::add_classes(array(

    'PHPExcel' => APPPATH.'classes/parser/PHPExcel.php',
    'PHPExcel_IOFactory' => APPPATH.'classes/parser/PHPExcel/IOFactory.php',
    'PHPExcel_Settings' => APPPATH.'classes/parser/PHPExcel/Settings.php',
    'PHPExcel_CachedObjectStorageFactory' => APPPATH.'classes/parser/PHPExcel/CachedObjectStorageFactory.php',
    'PHPExcel_Writer_Excel2007' => APPPATH.'classes/parser/PHPExcel/Writer/Excel2007.php',
	// Add classes you want to override here
	// Example: 'View' => APPPATH.'classes/view.php',
));

// Register the autoloader
Autoloader::register();

/**
 * Your environment.  Can be set to any of the following:
 *
 * Fuel::DEVELOPMENT
 * Fuel::TEST
 * Fuel::STAGING
 * Fuel::PRODUCTION
 */
Fuel::$env = (isset($_SERVER['FUEL_ENV']) ? $_SERVER['FUEL_ENV'] : Fuel::DEVELOPMENT);

// Initialize the framework with the config file.
Fuel::init('config.php');
