Skip to content

Instantly share code, notes, and snippets.

@DaGhostman
Created April 2, 2015 23:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DaGhostman/4217ca38261101a42864 to your computer and use it in GitHub Desktop.
Save DaGhostman/4217ca38261101a42864 to your computer and use it in GitHub Desktop.
Example index file for v3 of the CodeWave framework.
<?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