Skip to content

Commit

Permalink
fix: remove usage of kirby internal api
Browse files Browse the repository at this point in the history
  • Loading branch information
gearsdigital committed Jul 5, 2019
1 parent 6edc234 commit 40381fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
}
$url = option('kirby-reporter.repository');
$token = option('kirby-reporter.token');
/** Kirby\Cms\AppPlugins */
Kirby::plugin(
'gearsdigital/kirby-reporter',
[
Expand All @@ -30,7 +31,7 @@
'action' => function () use ($url, $token) {
try {
$isPreview = get('preview');
$requestBody = kirby()->api()->requestBody();
$requestBody = kirby()->request()->body()->data();
$vendor = new CreateVendor($url);
$client = new CreateClient($vendor, $token);
$payload = new PayloadInterceptor($requestBody);
Expand Down

0 comments on commit 40381fe

Please sign in to comment.