Core/Framework/Amvc/App/AbstractApp.php
private function getComponentsName(): string
    {
        $dt = debug_backtrace();
        $parts = array_reverse(explode('\\', $dt[2]['class']));
        $strip = [
            'Controller',
            'Model',
            'View'
        ];

        return str_replace($strip, '', $parts[0]);
    }
private function getComponentsName(): string
    {
        $dt = debug_backtrace();
        $parts = array_reverse(explode('\\', $dt[2]['class']));
        $strip = [
            'Controller',
            'Model',
            'View'
        ];

        return str_replace($strip, '', $parts[0]);
    }
private function getComponentsName ( ) : string { $ dt = debug_backtrace ( ) ; $ parts = array_reverse ( explode ( '\\' , $ dt [ 2 ] [ 'class' ] ) ) ; $ strip = [ 'Controller' , 'Model' , 'View' ] ; return str_replace ( $ strip , '' , $ parts [ 0 ] ) ; }
Autodiscovery of the components name

@return string
Autodiscovery of the components name