-$bootstrap = new $config->bootstrap_class($config, $moduleManager);
-$application = new Zend\Mvc\Application;
+$bootstrapClass = $appConfig['bootstrap_class'];
+$bootstrap = new $bootstrapClass($moduleManager);
+$application = new Zend\Mvc\Application;