server/src/app/Providers/ConfigServiceProvider.php
changeset 4 f55970e41793
parent 2 00e2916104fe
equal deleted inserted replaced
3:2b3247d02769 4:f55970e41793
     1 <?php
     1 <?php
     2 
     2 
     3 namespace CorpusParole\Providers;
     3 namespace CorpusParole\Providers;
     4 
     4 
     5 use Illuminate\Support\ServiceProvider;
     5 use Illuminate\Support\ServiceProvider;
       
     6 use EasyRdf\Http;
     6 
     7 
     7 class ConfigServiceProvider extends ServiceProvider
     8 class ConfigServiceProvider extends ServiceProvider
     8 {
     9 {
     9     /**
    10     /**
    10      * Overwrite any vendor / package configuration.
    11      * Overwrite any vendor / package configuration.
    16     public function register()
    17     public function register()
    17     {
    18     {
    18         config([
    19         config([
    19             //
    20             //
    20         ]);
    21         ]);
       
    22         Http::getDefaultHttpClient()->setConfig(['timeout' => config('corpusparole.easyrdf_http_client_timeout', 10)]);
    21     }
    23     }
    22 }
    24 }