Skip to content
Snippets Groups Projects
Commit 569783e2 authored by Demian Katz's avatar Demian Katz
Browse files

Simplified initialization to match latest skeleton application.

parent 0661eb2b
No related merge requests found
...@@ -55,16 +55,8 @@ if (!class_exists('Zend\Loader\AutoloaderFactory')) { ...@@ -55,16 +55,8 @@ if (!class_exists('Zend\Loader\AutoloaderFactory')) {
throw new RuntimeException('Unable to load ZF2.'); throw new RuntimeException('Unable to load ZF2.');
} }
// Get application stack configuration // Run the application!
$configuration = include 'config/application.config.php'; Zend\Mvc\Application::init(require 'config/application.config.php')->run();
// Setup service manager
$serviceManager = new ServiceManager(new ServiceManagerConfig($configuration['service_manager']));
$serviceManager->setService('ApplicationConfig', $configuration);
$serviceManager->get('ModuleManager')->loadModules();
// Run application
$serviceManager->get('Application')->bootstrap()->run()->send();
// Handle final profiling details, if necessary: // Handle final profiling details, if necessary:
if ($xhprof) { if ($xhprof) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment