Created
April 2, 2015 23:42
-
-
Save DaGhostman/4217ca38261101a42864 to your computer and use it in GitHub Desktop.
Example index file for v3 of the CodeWave framework.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once '../vendor/autoload.php'; | |
$router = new \Phroute\Phroute\RouteCollector(); | |
$router->get('/', function() { | |
echo 'Hello, world!'; | |
}); | |
$app = new \Wave\Framework\Application\Wave(function ($router) { | |
return new \Phroute\Phroute\Dispatcher($router->getData()); | |
}); | |
$app->setRouter($router); | |
$app->run(\Phly\Http\ServerRequestFactory::fromGlobals()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment