getDBLoadBalancerFactory()->disableChronologyProtection(); $resourceLoader = $services->getResourceLoader(); $context = new ResourceLoaderContext( $resourceLoader, $wgRequest ); // Respond to ResourceLoader request $resourceLoader->respond( $context ); // Append any visible profiling data in a manner appropriate for the Content-Type $profiler = Profiler::instance(); $profiler->setAllowOutput(); $profiler->logDataPageOutputOnly(); $mediawiki = new MediaWiki(); $mediawiki->doPostOutputShutdown(); }