X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=public%2Findex.php;h=49cb018c3ac40b606b0ef9ae18db768f4608c177;hb=5cf2f2cb85b2fbb82cab5eb9ab34acdbb55238e5;hp=1738321f883c5ba2edde02b65090605c4672b1a1;hpb=522f331570ed08b06e86af161b9de655a7408d5d;p=zf2.biz%2Fgalerie.git diff --git a/public/index.php b/public/index.php index 1738321..49cb018 100644 --- a/public/index.php +++ b/public/index.php @@ -1,25 +1,12 @@ getConfigListener()->addConfigGlobPath("config/autoload/*.php"); - - -$moduleManager = new Zend\Module\Manager($appConfig['modules']); -$events = $moduleManager->events(); -$events->setSharedManager($sharedEvents); -$events->attach($defaultListeners); -$moduleManager->loadModules(); - -// Create application, bootstrap, and run -$bootstrap = new Zend\Mvc\Bootstrap($defaultListeners->getConfigListener()->getMergedConfig()); -$bootstrap->events()->setSharedManager($sharedEvents); -$application = new Zend\Mvc\Application; -$bootstrap->bootstrap($application); -$application->run()->send(); +// Run the application! +Zend\Mvc\Application::init(require 'config/application.config.php')->run();