public static function getAllCapabilities(): array
    {
        $result = [];
        foreach (Utility::getControllers() as $controller) {
            if (!is_callable([$controller, 'getCapabilities'])) {
                continue;
            }

            $result[$controller] = $controller::getCapabilities($controller);
        }

        return $result;
    }
public static function getAllCapabilities(): array
    {
        $result = [];
        foreach (Utility::getControllers() as $controller) {
            if (!is_callable([$controller, 'getCapabilities'])) {
                continue;
            }

            $result[$controller] = $controller::getCapabilities($controller);
        }

        return $result;
    }
public static function getAllCapabilities ( ) : array { $ result = [ ] ; foreach ( Utility :: getControllers ( ) as $ controller ) { if ( ! is_callable ( [ $ controller , 'getCapabilities' ] ) ) { continue ; } $ result [ $ controller ] = $ controller :: getCapabilities ( $ controller ) ; } return $ result ; }
Method that retrieves all capabilities.

@return mixed[] capabilities
Method that retrieves all capabilities .