FEATURE: add first basics of profiler

This commit is contained in:
Michal Kváček
2017-02-22 08:54:26 +01:00
parent 5132278ee1
commit c027ffe2df
23 changed files with 293 additions and 0 deletions
@@ -0,0 +1,40 @@
<?php
namespace Modules\Profiler\Providers;
use App\Providers\ModuleServiceProvider;
use Modules\Profiler\Middleware\Profiler;
class ProfilerServiceProvider extends ModuleServiceProvider
{
protected function setModuleAlias()
{
$this->alias = 'profiler';
}
/**
* Boot the application events.
*
* @return void
*/
public function boot()
{
parent::boot();
$this->app->register(ProfilerEventServiceProvider::class);
}
public function register()
{
parent::register();
$this->app['router']->prependMiddlewareToGroup('web', Profiler::class);
// $this->app['router']->prependMiddlewareToGroup('admin', Profiler::class);
}
protected function setModulePath()
{
$this->path = __DIR__;
}
}