Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Handle autoloading in front controller

  • Loading branch information...
commit 3e6e9b99969e473aca57bee10278da7f529adaf4 1 parent c35ee08
@igorw authored
Showing with 2 additions and 2 deletions.
  1. +0 −2  src/app.php
  2. +2 −0  web/index.php
View
2  src/app.php
@@ -1,7 +1,5 @@
<?php
-require_once __DIR__.'/../vendor/autoload.php';
-
use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
View
2  web/index.php
@@ -1,4 +1,6 @@
<?php
+require_once __DIR__.'/../vendor/autoload.php';
+
$app = require __DIR__.'/../src/app.php';
$app->run();
Please sign in to comment.
Something went wrong with that request. Please try again.