You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
507 B

  1. <?php
  2. chdir('..');
  3. include('config.php');
  4. include('vendor/autoload.php');
  5. use Symfony\Component\HttpFoundation\Request;
  6. use Symfony\Component\HttpFoundation\Response;
  7. $router = new League\Route\RouteCollection;
  8. $templates = new League\Plates\Engine(dirname(__FILE__).'/../views');
  9. include('controllers/controllers.php');
  10. $dispatcher = $router->getDispatcher();
  11. $request = Request::createFromGlobals();
  12. $response = $dispatcher->dispatch($request->getMethod(), $request->getPathInfo());
  13. $response->send();