FEATURE: add widget with address block

This commit is contained in:
Michal Kváček
2016-10-12 15:12:42 +02:00
parent af4edac469
commit b9d141c4f1
7 changed files with 208 additions and 0 deletions
@@ -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());
}
}