FEATURE: add widget with address block
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
<?php namespace Modules\ContactForm\Providers;
|
||||
|
||||
use App\Handlers\Registrators\TemplateRegistrator;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use InvalidArgumentException;
|
||||
use Modules\ContactForm\Handlers\ContactForm;
|
||||
use Modules\ContactForm\Widgets\Address\Address;
|
||||
use Modules\ContactForm\Widgets\Address\Form;
|
||||
|
||||
class ContactFormServiceProvider extends ServiceProvider
|
||||
{
|
||||
@@ -23,6 +27,7 @@ class ContactFormServiceProvider extends ServiceProvider
|
||||
$this->registerTranslations();
|
||||
$this->registerConfig();
|
||||
$this->registerViews();
|
||||
$this->registerWidgets();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -83,4 +88,11 @@ class ContactFormServiceProvider extends ServiceProvider
|
||||
{
|
||||
return array ();
|
||||
}
|
||||
|
||||
private function registerWidgets()
|
||||
{
|
||||
$registrator = $this->app->make('registerWidget');
|
||||
|
||||
$registrator->register(Address::class, null, ContactForm::getModuleId());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user