FEATURE: add simple view for requests and queries

This commit is contained in:
Michal Kváček
2017-03-02 20:04:35 +01:00
parent d99c046103
commit 9c90e844b0
23 changed files with 347 additions and 54 deletions
@@ -11,7 +11,6 @@ class ProfilerServiceProvider extends ModuleServiceProvider
$this->alias = 'profiler';
}
/**
* Boot the application events.
*
@@ -28,10 +27,20 @@ class ProfilerServiceProvider extends ModuleServiceProvider
{
parent::register();
$this->app['router']->prependMiddlewareToGroup('web', Profiler::class);
// $this->app['router']->prependMiddlewareToGroup('admin', Profiler::class);
}
// register settings form
$registrator = $this->app->make('registerSettingsExtension');
$registrator->register('profiler', 'profiler::module.name', 'profiler::settings.profiler');
// turn on profiler for visitor area (middleware group "web")
if (setting('useProfilerInVisitorArea', true)) {
$this->app['router']->prependMiddlewareToGroup('web', Profiler::class);
}
// use profiler also in admin?
if (setting('useProfilerInAdmin', true)) {
$this->app['router']->prependMiddlewareToGroup('admin', Profiler::class);
}
}
protected function setModulePath()
{