Skip to content

Commit

Permalink
#12 Force format of collectors
Browse files Browse the repository at this point in the history
  • Loading branch information
lahaxearnaud committed Nov 12, 2015
1 parent 245a57c commit 6e239ae
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 44 deletions.
62 changes: 31 additions & 31 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions src/Collectors/Data/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,4 @@ protected function registerListeners()
$this->stream();
});
}

/**
* Write data in the datasource and clean current buffer
* @return mixed
*/
public function stream()
{
$patch = $this->jsonPatch->generate($this->getPath(), JsonPatch::ACTION_ADD, $this->data, true);
$this->dataSource->save($this->process, [$patch]);
$this->data = [];
}
}
2 changes: 0 additions & 2 deletions src/Collectors/Data/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

namespace Ndrx\Profiler\Laravel\Collectors\Data;
use Illuminate\Foundation\Console\RouteListCommand;
use Illuminate\Support\Facades\App;

/**
Expand All @@ -30,7 +29,6 @@ public function resolve()
$middleware = array_unique(array_values($route->middleware()));

$this->data[] = array(
'host' => $route->domain(),
'method' => implode('|', $route->methods()),
'uri' => $route->uri(),
'name' => $route->getName(),
Expand Down

0 comments on commit 6e239ae

Please sign in to comment.