We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c04d78e commit d22e654Copy full SHA for d22e654
inc/Action/AbstractAction.php
@@ -28,8 +28,7 @@ public function __construct($actionname = '')
28
$this->actionname = $actionname;
29
} else {
30
// As of PHP 8 this seems to be the fastest way to get the name:
31
- $n = explode('\\', get_class($this));
32
- $this->actionname = strtolower(array_pop($n));
+ $this->actionname = strtolower((new \ReflectionClass($this))->getShortName());
33
}
34
35
0 commit comments