Skip to content

Instantly share code, notes, and snippets.

@Aurielle
Created January 26, 2012 19:16
Show Gist options
  • Save Aurielle/1684471 to your computer and use it in GitHub Desktop.
Save Aurielle/1684471 to your computer and use it in GitHub Desktop.
Introducing Avalon Framework: bootstrap.php
<?php
// ------- Load Avalon -------
require(LIBS_DIR . '/Avalon/loader.php');
// ------- Basic configuration -------
// * $environment, $debuggerMode, $debuggerEmail and $params
// * are all initialized automatically. Do NOT overwrite $params, just add
// * new values: $params += array('key' => 'value');
//
// $environment = Avalon\Config\Configurator::PRODUCTION;
// $environment = Avalon\Config\Configurator::DEVELOPMENT;
//
// $debuggerMode = Nette\Diagnostics\Debugger::DEVELOPMENT;
// $debuggerMode = Nette\Diagnostics\Debugger::PRODUCTION;
// $debuggerMode = array('1.2.3.4');
//
// $debuggerEmail = '[email protected]';
$application = new Avalon\Application\Application($params, $environment);
$application->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment