30 lines
767 B
PHP
30 lines
767 B
PHP
<?php
|
|
namespace Templates\PragueTennisCamp\Providers;
|
|
|
|
use App\CMS\Helpers\Template;
|
|
use Modules\ContactForm\Widgets\Form\Presenter;
|
|
use Templates\PragueTennisCamp\Pipeline\AddHotelsCategory;
|
|
use Templates\PragueTennisCamp\Pipeline\AddTraineeTeamCategory;
|
|
|
|
class ServiceProvider extends \Illuminate\Support\ServiceProvider {
|
|
/**
|
|
* Register the service provider.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
|
|
}
|
|
|
|
public function boot() {
|
|
if (\App::runningInConsole())
|
|
return;
|
|
|
|
Presenter::$template = Template::name('widgets.contact.form');
|
|
|
|
$pipeline = app('displayPipeline');
|
|
$pipeline->add(AddTraineeTeamCategory::class);
|
|
$pipeline->add(AddHotelsCategory::class);
|
|
}
|
|
} |