From a090dba63f68a2d71933b40be8466bb90f572e38 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Wed, 23 May 2012 23:03:24 +0200 Subject: [PATCH] Removing unused stat call and reducing complexity of index.php --- public/index.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/public/index.php b/public/index.php index 5408a8c..ece1222 100644 --- a/public/index.php +++ b/public/index.php @@ -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'; -- 1.7.10.4