src/Foundation/Kernel.php
/**
	 * Loads service providers and registers them in the application.
	 *
	 * @throws \Horizon\Exception\HorizonException
	 */
Loads service providers and registers them in the application.
Loads service providers and registers them in the application .
private function loadProviders() {
		Profiler::start('services:load');
		$providers = Application::config('providers', array());
		foreach ($providers as $className) {
			if (class_exists($className)) {
				$provider = new $className();
				if ($provider instanceof ServiceProvider) {
					Application::register($provider);
				}
			}
		}
		Profiler::stop('services:load');
	}
private function loadProviders ( ) { Profiler :: start ( 'services:load' ) ; $ providers = Application :: config ( 'providers' , array ( ) ) ; foreach ( $ providers as $ className ) { if ( class_exists ( $ className ) ) { $ provider = new $ className ( ) ; if ( $ provider instanceof ServiceProvider ) { Application :: register ( $ provider ) ; } } } Profiler :: stop ( 'services:load' ) ; }
Loads service providers and registers them in the application.
Loads service providers and registers them in the application .