projects
/
zf2.biz
/
galerie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a96f2d4
)
Removing unused stat call and reducing complexity of index.php
author
Marco Pivetta
<ocramius@gmail.com>
Wed, 23 May 2012 21:03:24 +0000
(23:03 +0200)
committer
Marco Pivetta
<ocramius@gmail.com>
Wed, 23 May 2012 21:03:24 +0000
(23:03 +0200)
public/index.php
patch
|
blob
|
history
diff --git
a/public/index.php
b/public/index.php
index
5408a8c
..
ece1222
100644
(file)
--- a/
public/index.php
+++ b/
public/index.php
@@
-4,13
+4,10
@@
use Zend\ServiceManager\ServiceManager,
chdir(dirname(__DIR__));
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
// 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';
// Get application stack configuration
$configuration = include 'config/application.config.php';