src/Extension/Kernel.php
/**
	 * Loads providers from extensions and registers them in the application.
	 */
Loads providers from extensions and registers them in the application.
Loads providers from extensions and registers them in the application .
public function provide() {
		foreach ($this->extensions as $extension) {
			$providers = $extension->getProviders();
			foreach ($providers as $className) {
				if (class_exists($className)) {
					$provider = new $className;
					if ($provider instanceof ServiceProvider) {
						Application::register($provider);
					}
				}
			}
		}
	}
public function provide ( ) { foreach ( $ this -> extensions as $ extension ) { $ providers = $ extension -> getProviders ( ) ; foreach ( $ providers as $ className ) { if ( class_exists ( $ className ) ) { $ provider = new $ className ; if ( $ provider instanceof ServiceProvider ) { Application :: register ( $ provider ) ; } } } } }
Loads providers from extensions and registers them in the application.
Loads providers from extensions and registers them in the application .