From e924e2c62469b3e8165798612eb509feeb37e5e8 Mon Sep 17 00:00:00 2001 From: Mikkel Bonde Date: Thu, 23 May 2019 10:39:02 +0200 Subject: [PATCH] Use the plugin as the most important grouping mechanism as plugins can contain multiple prefixes --- src/Traits/NewRelicTrait.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Traits/NewRelicTrait.php b/src/Traits/NewRelicTrait.php index 1e8c10e..6540ee1 100644 --- a/src/Traits/NewRelicTrait.php +++ b/src/Traits/NewRelicTrait.php @@ -195,15 +195,15 @@ protected function _deriveNameFromShell(Shell $shell) { */ protected function _deriveNameFromRequest(Request $request) { $name = []; + + if ($request->getParam('plugin')) { + $name[] = $request->getParam('plugin'); + } if ($request->getParam('prefix')) { $name[] = $request->getParam('prefix'); } - if ($request->getParam('plugin')) { - $name[] = $request->getParam('plugin'); - } - $name[] = $request->getParam('controller'); $name[] = $request->getParam('action');