REFACTORING #1880 @4h30m: another ugly refactoring commit
This commit is contained in:
@@ -32,18 +32,16 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
// ignore running from artisan
|
||||
if (App::runningInConsole()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->registerWidgets();
|
||||
$this->registerSettings();
|
||||
$this->registerSearch();
|
||||
|
||||
$this->app->bind(IContent::class, ContentRepository::class);
|
||||
$this->app->bind(IModule::class, ModuleRepository::class);
|
||||
$this->app->bind(ITemplate::class, TemplateRepository::class);
|
||||
|
||||
// ignore running from artisan
|
||||
if (!App::runningInConsole()) {
|
||||
$this->registerWidgets();
|
||||
$this->registerSettings();
|
||||
$this->registerSearch();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user