File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -167,16 +167,14 @@ private function collectErrorExceptionData(Throwable $throwable): array
167167 private function collectErrorExceptionExtraData (array $ collectedExceptionData , ?RequestInterface $ request ): array
168168 {
169169 if (! $ request instanceof HttpRequest) {
170+ $ argv = $ _SERVER ['argv ' ];
170171 $ serverUrl = php_uname ('n ' );
171- // todo: get script name and params from cli
172172 $ url = $ serverUrl . ': ' . basename ((string ) getcwd ())
173173 . ' ' . get_current_user ()
174- . '$ ' . PHP_BINARY . ' ' ; // . $request->getScriptName() ;
174+ . '$ ' . PHP_BINARY ;
175175
176- //$params = $request->getParams()->toArray();
177- //unset($params['controller'], $params['action']);
178- //$request->getParams()->fromArray($params);
179- //$url .= ' ' . $request->toString();
176+ $ params = implode (' ' , $ argv );
177+ $ url .= $ params ;
180178 } else {
181179 $ http = $ request ->getUri ();
182180 $ serverUrl = $ http ->getScheme () . ':// ' . $ http ->getHost ();
You can’t perform that action at this time.
0 commit comments