Updated service provider reference, added phpunit env var
This commit is contained in:
		
							parent
							
								
									2db081938f
								
							
						
					
					
						commit
						3df6c9ac05
					
				| 
						 | 
					@ -8,6 +8,7 @@ use BookStack\Entities\Models\Chapter;
 | 
				
			||||||
use BookStack\Entities\Models\Page;
 | 
					use BookStack\Entities\Models\Page;
 | 
				
			||||||
use BookStack\Settings\Setting;
 | 
					use BookStack\Settings\Setting;
 | 
				
			||||||
use BookStack\Settings\SettingService;
 | 
					use BookStack\Settings\SettingService;
 | 
				
			||||||
 | 
					use Illuminate\Contracts\Cache\Repository;
 | 
				
			||||||
use Illuminate\Database\Eloquent\Relations\Relation;
 | 
					use Illuminate\Database\Eloquent\Relations\Relation;
 | 
				
			||||||
use Illuminate\Support\Facades\View;
 | 
					use Illuminate\Support\Facades\View;
 | 
				
			||||||
use Illuminate\Support\ServiceProvider;
 | 
					use Illuminate\Support\ServiceProvider;
 | 
				
			||||||
| 
						 | 
					@ -59,7 +60,7 @@ class AppServiceProvider extends ServiceProvider
 | 
				
			||||||
    public function register()
 | 
					    public function register()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $this->app->singleton(SettingService::class, function ($app) {
 | 
					        $this->app->singleton(SettingService::class, function ($app) {
 | 
				
			||||||
            return new SettingService($app->make(Setting::class), $app->make('Illuminate\Contracts\Cache\Repository'));
 | 
					            return new SettingService($app->make(Setting::class), $app->make(Repository::class));
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -55,5 +55,6 @@
 | 
				
			||||||
        <server name="API_REQUESTS_PER_MIN" value="180"/>
 | 
					        <server name="API_REQUESTS_PER_MIN" value="180"/>
 | 
				
			||||||
        <server name="LOG_FAILED_LOGIN_MESSAGE" value=""/>
 | 
					        <server name="LOG_FAILED_LOGIN_MESSAGE" value=""/>
 | 
				
			||||||
        <server name="LOG_FAILED_LOGIN_CHANNEL" value="testing"/>
 | 
					        <server name="LOG_FAILED_LOGIN_CHANNEL" value="testing"/>
 | 
				
			||||||
 | 
					        <server name="WKHTMLTOPDF" value="false"/>
 | 
				
			||||||
    </php>
 | 
					    </php>
 | 
				
			||||||
</phpunit>
 | 
					</phpunit>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue