Permalink
Browse files

Handle autoloading in front controller

  • Loading branch information...
1 parent c35ee08 commit 3e6e9b99969e473aca57bee10278da7f529adaf4 @igorw committed Oct 17, 2013
Showing with 2 additions and 2 deletions.
  1. +0 −2 src/app.php
  2. +2 −0 web/index.php
View
@@ -1,7 +1,5 @@
<?php
-require_once __DIR__.'/../vendor/autoload.php';
-
use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
View
@@ -1,4 +1,6 @@
<?php
+require_once __DIR__.'/../vendor/autoload.php';
+
$app = require __DIR__.'/../src/app.php';
$app->run();

0 comments on commit 3e6e9b9

Please sign in to comment.