Added README back to vendor/
[zf2.biz/galerie.git] / public / index.php
index adaa631..34c609d 100644 (file)
@@ -4,6 +4,11 @@ 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');
 
@@ -16,4 +21,4 @@ $serviceManager->setService('ApplicationConfiguration', $configuration);
 $serviceManager->get('ModuleManager')->loadModules();
 
 // Run application.
-$serviceManager->get('Application')->bootstrap()->run()->send();
\ No newline at end of file
+$serviceManager->get('Application')->bootstrap()->run()->send();