Register providers.
480266
public function register()
    {
        $appUrl = $this->app->make('config')->get('app.url');

        $this->app->singleton(Url::class, function ($app) use ($appUrl) {
            return new Url($appUrl);
        });

        $this->app->singleton(Href::class, function ($app) use ($appUrl) {
            return new Href($appUrl, $app->make(Url::class));
        });
    }
1003227
public function register()
    {
        $request          = app('request');
        $trustedHeaderSet = config('proxy.headerSet', Request::HEADER_X_FORWARDED_ALL);
        $proxies          = config('proxy.trusted');

        if (!empty($proxies)) {
            if ($proxies === '*') {
                $proxies = [$request->getClientIp()];
            } elseif (!is_array($proxies)) {
                $proxies = [$proxies];
            }
            $request->setTrustedProxies($proxies, $trustedHeaderSet);
        }
    }
477085
public function register()
    {
        Framework::registerPackage('framework');

        // Register 3rd party providers
        $this->app->register(WidgetServiceProvider::class);

        $this->app->register(HelloquentServiceProvider::class);
        $this->app->register(ViewServiceProvider::class);
        $this->app->register(HttpServiceProvider::class);
        $this->app->register(StatisticsServiceProvider::class);
        $this->app->register(DynatableServiceProvider::class);
    }
1124313
public function register()
    {
        $this->app->bindShared('packages', function ($app)
        {
            $repository = new Repository($app['config'], $app['files']);

            return new PackageManager($app, $repository);
        });
    }
330958
public function register()
    {
        $this->app->register('ProAI\Datamapper\Providers\MetadataServiceProvider');

        $this->registerEntityScanner();

        $this->registerSchemaBuilder();

        $this->registerModelGenerator();

        $this->registerCommands();
    }
272962
public function registerObserverServiceProvider()
    {
        if (! $this->files->exists(app_path('Providers/ObserverServiceProvider.php'))) {
            $this->call('make:provider', [
                'name' => 'ObserverServiceProvider',
            ]);
            $this->info('Please register your ObserverServiceProvider in config/app.php.');
            $this->info('Do run php artisan config:cache to make sure ObserverServiceProvider is loaded.');
        } else {
            $this->info(app_path('Providers/ObserverServiceProvider.php') . ' already exist.');
        }
    }
1198432
public function registerConfiguredProviders()
	{
		$manifestPath = $this->basePath() . '/vendor/services.json';

		(new ProviderRepository($this, new Filesystem, $manifestPath))
		            ->load($this->config['app.providers']);
	}
3306
protected function registerServiceProviders()
    {
        $this->register(new EventServiceProvider($this));
        $this->register(new RoutingServiceProvider($this));

        foreach ($this->make('config')->get('app.providers') as $provider) {
            $this->register($provider);
        }
    }
1015168
public function registerServices()
    {
        $this['serviceProviders'] = $this->serviceProviders;

        foreach ($this->serviceProviders as $providerArray) {
            list($provider,$enabled) = $providerArray;

            if (!$enabled) {
                continue;
            }

            if (empty($provider) || !class_exists($provider)) {
                continue;
            }

            $provider = new $provider(self::$instance);
            $provider->register();
        }
    }
811761
protected function registerThirdPartyProviders()
    {
        if (
            'testing' == $this->app->environment()
            ||
            version_compare(Application::VERSION, '5.5.0', '<')
        ) {
            $this->registerMenuComponent();
            $this->registerFormComponent();
            $this->registerFlashComponent();
            $this->registerBreadcrumbsComponent();
            $this->registerSluggableComponent();
        }

        $this->mergeBreadCrumbsConfig();
    }
1126980
public function register()
    {
        $this->mergeConfigFrom(__DIR__.self::PATH, 'jsonapi');

        $provider = new DingoProvider();

        $this->app->singleton(JsonApiSerializer::class, $provider->provider());
    }
1320941
private function registerSocialProviders()
    {
        foreach ($this->enabled as $provider) {
            $providerClass =  $provider . 'SocialProvider';
            $this->app->bind($providerClass, function ($app) use ($providerClass) {
                $providerClassWithNamespace = 'Acacha\LaravelSocial\SocialProviders\\' . $providerClass;
                return new $providerClassWithNamespace($app->make('Laravel\Socialite\Contracts\Factory'));
            });
        }
    }
815958
protected function registerDefaultProviders() {

		array_map( function( $provider ) {
			$this->provider( $provider );
		}, [
			AttrServiceProvider::class,
			LanguageServiceProvider::class,
			MetaServiceProvider::class,
			TemplatesServiceProvider::class,
			HierarchyServiceProvider::class,
			ViewServiceProvider::class
		] );
	}
33282
private function registerProviders()
    {
        $this->providers = $this->defaultProviders;

        $providers = [];
        foreach($this->providers as $provider) {
            if ($provider === 'EasyWeChat\Foundation\ServiceProviders\OpenPlatformServiceProvider') {
                continue;
            }

            $providers[] = $provider;
        }

        $this->providers = $providers;

        if ($this['config']['auth_type'] === Config::AUTH_TYPE_COMPONENT) {
            $providers = [];
            foreach($this->providers as $provider) {
                if ($provider === 'EasyWeChat\Foundation\ServiceProviders\ServerServiceProvider'
                    || $provider === 'EasyWeChat\Foundation\ServiceProviders\OAuthServiceProvider') {
                    continue;
                }

                $providers[] = $provider;
            }

            $this->providers = $providers;

            array_push($this->providers, ServiceProviders\OAuthServiceProvider::class);
            array_push($this->providers, ServiceProviders\ServerServiceProvider::class);
        }

        foreach ($this->providers as $provider) {
            $this->register(new $provider());
        }
    }
1146006
protected function registerServices()
    {
        $this->app->bind(
            'Xuma\Amaran\ViewBinder',
            'Xuma\Amaran\AmaranViewBinder'
        );

        $this->app->singleton('amaran', function($app) {
            $binder = new AmaranViewBinder($app['events']);

            return $this->app->make('Xuma\Amaran\AmaranHandler');
        });
    }
1366735
protected function registerServiceProviders()
    {
        $list = new ProviderList(Core::getFacadeRoot());

        foreach ($this->providers as $provider) {
            $list->registerProvider($provider);

            if (method_exists($provider, 'boot')) {
                Core::make($provider)->boot($this);
            }
        }
    }
227679
public function register()
    {
        $this->mergeConfigFrom(__DIR__ . '/../../config/config.php', 'litecms.pricelist');

        // Bind facade
        $this->app->bind('litecms.pricelist', function ($app) {
            return $this->app->make('Litecms\Pricelist\Pricelist');
        });

        // Bind PriceList to repository
        $this->app->bind(
            'Litecms\Pricelist\Interfaces\PriceListRepositoryInterface',
            \Litecms\Pricelist\Repositories\Eloquent\PriceListRepository::class
        );

        $this->app->register(\Litecms\Pricelist\Providers\AuthServiceProvider::class);

        $this->app->register(\Litecms\Pricelist\Providers\RouteServiceProvider::class);

    }