X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=public%2Findex.php;h=2891a0cf3bd0e676daa32e77fb95e60d503f6592;hb=867da89dcee5dff081b541f2d3cf98a854c3f8db;hp=cd83a90ede8a84758204edd2e8b162358f3db38b;hpb=a7f22ba984ddda1d8d01ee027fa76b73b1074407;p=zf2.biz%2Fapplication_blanche.git diff --git a/public/index.php b/public/index.php index cd83a90..2891a0c 100644 --- a/public/index.php +++ b/public/index.php @@ -1,30 +1,12 @@ array())); - -$appConfig = include __DIR__ . '/../configs/application.config.php'; - -$moduleLoader = new Zend\Loader\ModuleAutoloader($appConfig['module_paths']); -$moduleLoader->register(); - -$moduleManager = new Zend\Module\Manager( - $appConfig['modules'], - new Zend\Module\ManagerOptions($appConfig['module_manager_options']) -); - -// Create application, bootstrap, and run -$bootstrapClass = $appConfig['bootstrap_class']; -$bootstrap = new $bootstrapClass($moduleManager); -$application = new Zend\Mvc\Application; -$bootstrap->bootstrap($application); -$application->run()->send(); +// Run the application! +Zend\Mvc\Application::init(include 'config/application.config.php')->run();