File tree 1 file changed +13
-1
lines changed
app/code/Magento/NewRelicReporting/Plugin
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+
6
7
namespace Magento \NewRelicReporting \Plugin ;
7
8
8
9
use Magento \NewRelicReporting \Model \Config ;
9
10
use Magento \NewRelicReporting \Model \NewRelicWrapper ;
11
+ use Symfony \Component \Console \Command \Command ;
10
12
13
+ /**
14
+ * Describe NewRelic commands plugin.
15
+ */
11
16
class CommandPlugin
12
17
{
13
18
/**
@@ -32,7 +37,14 @@ public function __construct(
32
37
$ this ->newRelicWrapper = $ newRelicWrapper ;
33
38
}
34
39
35
- public function beforeRun (\Symfony \Component \Console \Command \Command $ command , ...$ args )
40
+ /**
41
+ * Set NewRelic Transaction name before running command.
42
+ *
43
+ * @param Command $command
44
+ * @param array $args
45
+ * @return array
46
+ */
47
+ public function beforeRun (Command $ command , ...$ args )
36
48
{
37
49
$ this ->newRelicWrapper ->setTransactionName (
38
50
sprintf ('CLI %s ' , $ command ->getName ())
You can’t perform that action at this time.
0 commit comments