core/Controllers/Controller.php
public function getName(): string
	{
		if( !$this->name )
		{
			$name = $this->getModule()->getKey();
			if( preg_match('/Controllers\\\\(.*?)$/', static::class, $e ) )
			{
				$name .= '::' . preg_replace_callback( '/[A-Z]/', static function( $m ) { return '_' . lcfirst( $m[0] ); }, lcfirst( $e[1] ) );
				$name  = str_replace( '\\', ':', $name );
			}
			$this->name = strtolower( $name );
		}

		return $this->name;
	}
public function getName(): string
	{
		if( !$this->name )
		{
			$name = $this->getModule()->getKey();
			if( preg_match('/Controllers\\\\(.*?)$/', static::class, $e ) )
			{
				$name .= '::' . preg_replace_callback( '/[A-Z]/', static function( $m ) { return '_' . lcfirst( $m[0] ); }, lcfirst( $e[1] ) );
				$name  = str_replace( '\\', ':', $name );
			}
			$this->name = strtolower( $name );
		}

		return $this->name;
	}
public function getName ( ) : string { if ( ! $ this -> name ) { $ name = $ this -> getModule ( ) -> getKey ( ) ; if ( preg_match ( '/Controllers\\\\(.*?)$/' , static :: class , $ e ) ) { $ name .= '::' . preg_replace_callback ( '/[A-Z]/' , static function ( $ m ) { return '_' . lcfirst ( $ m [ 0 ] ) ; } , lcfirst ( $ e [ 1 ] ) ) ; $ name = str_replace ( '\\' , ':' , $ name ) ; } $ this -> name = strtolower ( $ name ) ; } return $ this -> name ; }
Get controller name

@return string
Get controller name