<?php

// Autoload files using Composer autoload
require_once realpath(__DIR__ . '/../vendor/autoload.php');
require_once realpath(__DIR__ . '/../aliases.php');

// Create application
$arch = new \Arch\App('config.xml');

// Add default route
r('/', function () {
    o('Hello Architect!');
});

// Run application
$arch->run();
<?php

// Autoload files using Composer autoload
require_once realpath(__DIR__ . '/../vendor/autoload.php');
require_once realpath(__DIR__ . '/../aliases.php');

// Create application
$app = \Arch\App::Instance('config.xml');

// Add default route
r('/', function () {
    o('Hello Architect!');
});

// Run application
$app->run();
--- 
+++ 
@@ -5,7 +5,7 @@
 require_once realpath(__DIR__ . '/../aliases.php');
 
 // Create application
-$app = \Arch\App::Instance('config.xml');
+$arch = new \Arch\App('config.xml');
 
 // Add default route
 r('/', function () {
@@ -13,4 +13,4 @@
 });
 
 // Run application
-$app->run();
+$arch->run();
Fix apptest - minimal code to run an Architect application