FEATURE: delete commented-out sections with template registration
This commit is contained in:
@@ -62,22 +62,6 @@ class ContactFormServiceProvider extends ServiceProvider
|
||||
$this->loadViewsFrom(array_merge(array_map(function ($path) {
|
||||
return $path . '/modules/contactform';
|
||||
}, \Config::get('view.paths')), [$sourcePath]), 'contactform');
|
||||
|
||||
// /**
|
||||
// * @var $registrator TemplateRegistrator
|
||||
// */
|
||||
// $registrator = $this->app->make('registerTemplateDir');
|
||||
// try {
|
||||
// // setup some global variables
|
||||
// $registrator->setBaseDirectory('resources/views/modules/contactform/visitor');
|
||||
// $registrator->setNamespace('contactform');
|
||||
// $registrator->setModuleId(call_user_func([config('contactform.handler'), 'getModuleId']));
|
||||
//
|
||||
// // register path with current template name
|
||||
// $registrator->register(config('app.theme'), 'contactform::admin/adminMenu.templatePath');
|
||||
// } catch (InvalidArgumentException $e) {
|
||||
// // ignore this exception
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user