Merge pull request #65 from Ocramius/hotfix/index-stat-call
authorEvan Coury <me@evancoury.com>
Wed, 23 May 2012 21:11:24 +0000 (14:11 -0700)
committerEvan Coury <me@evancoury.com>
Wed, 23 May 2012 21:11:24 +0000 (14:11 -0700)
Removing unused stat call and reducing complexity of index.php

public/index.php

index 5408a8c..ece1222 100644 (file)
@@ -4,13 +4,10 @@ use Zend\ServiceManager\ServiceManager,
 
 chdir(dirname(__DIR__));
 
-if (!file_exists('vendor/autoload.php')) {
-    throw new RuntimeException('vendor/autoload.php could not be found. Did you run php composer.phar install?');
-    exit;
-}
-
 // Composer autoloading
-require_once('vendor/autoload.php');
+if (!include_once('vendor/autoload.php')) {
+    throw new RuntimeException('vendor/autoload.php could not be found. Did you run `php composer.phar install`?');
+}
 
 // Get application stack configuration
 $configuration = include 'config/application.config.php';