Updated README to keep ordering of index.php.
authorKyle Spraggs <theman@spiffyjr.me>
Tue, 22 May 2012 06:18:27 +0000 (01:18 -0500)
committerKyle Spraggs <theman@spiffyjr.me>
Tue, 22 May 2012 06:18:27 +0000 (01:18 -0500)
README.md
public/index.php

index f3fd2fa..f7d12e3 100644 (file)
--- a/README.md
+++ b/README.md
@@ -31,14 +31,14 @@ recommended that you use Composer due to the dependency management it provides.
 You will also need to update public/index.php and modules/Application/Module.php to enable autoloading.
 For public/index.php, replace lines 2-13 with:
 
-    chdir(dirname(__DIR__));
-    require_once (getenv('ZF2_PATH') ?: 'vendor/ZendFramework/library') . '/Zend/Loader/AutoloaderFactory.php';
-
     use Zend\Loader\AutoloaderFactory,
         Zend\ServiceManager\ServiceManager,
         Zend\Mvc\Service\ServiceManagerConfiguration;
 
-    // setup autoloader
+    chdir(dirname(__DIR__));
+    require_once (getenv('ZF2_PATH') ?: 'vendor/ZendFramework/library') . '/Zend/Loader/AutoloaderFactory.php';
+
+    // Setup autoloader
     AutoloaderFactory::factory();
 
 For modules/Application/Module.php add:
index 34c609d..5408a8c 100644 (file)
@@ -12,13 +12,13 @@ if (!file_exists('vendor/autoload.php')) {
 // Composer autoloading
 require_once('vendor/autoload.php');
 
-// Get application stack configuration.
+// Get application stack configuration
 $configuration = include 'config/application.config.php';
 
-// Setup service manager.
+// Setup service manager
 $serviceManager = new ServiceManager(new ServiceManagerConfiguration($configuration['service_manager']));
 $serviceManager->setService('ApplicationConfiguration', $configuration);
 $serviceManager->get('ModuleManager')->loadModules();
 
-// Run application.
+// Run application
 $serviceManager->get('Application')->bootstrap()->run()->send();