Skip to content

Commit

Permalink
DBP: Reverted.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ivanov committed Aug 2, 2017
1 parent 371b1b6 commit 3a821d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 37 deletions.
18 changes: 0 additions & 18 deletions config/db-profiler.php

This file was deleted.

20 changes: 1 addition & 19 deletions src/DbProfilerServiceProvider.php
Expand Up @@ -10,9 +10,9 @@ class DbProfilerServiceProvider extends ServiceProvider
{
private static $counter;

/* @laravel-versions */
public function register()
{
$this->mergeConfig();
}

private static function tickCounter()
Expand All @@ -22,8 +22,6 @@ private static function tickCounter()

public function boot()
{
$this->publish();

if (!$this->isEnabled()) {
return;
}
Expand Down Expand Up @@ -71,20 +69,4 @@ private function applyBindings($sql, array $bindings)

return $sql;
}

private function mergeConfig()
{
$this->mergeConfigFrom($this->getConfigPath(), 'db-profiler');
}

private function publish()
{
$path = $this->getConfigPath();
$this->publishes([$path => config_path('db-profiler.php')], 'config');
}

private function getConfigPath()
{
return __DIR__ . '/../config/db-profiler.php';
}
}

0 comments on commit 3a821d7

Please sign in to comment.