Flarum\Foundation\Application::loadDeferredProvider PHP Method

loadDeferredProvider() public method

Load the provider for a deferred service.
public loadDeferredProvider ( string $service )
$service string
    public function loadDeferredProvider($service)
    {
        if (!isset($this->deferredServices[$service])) {
            return;
        }
        $provider = $this->deferredServices[$service];
        // If the service provider has not already been loaded and registered we can
        // register it with the application and remove the service from this list
        // of deferred services, since it will already be loaded on subsequent.
        if (!isset($this->loadedProviders[$provider])) {
            $this->registerDeferredProvider($provider, $service);
        }
    }