src/Koldy/Security/Csrf.php
public static function isEnabled(): bool
    {
        static::init();

        if (array_key_exists(self::ENABLED, static::$config)) {
            return static::$config[self::ENABLED] ?? false;
        }

        return static::getParameterName() !== null;
    }
public static function isEnabled(): bool
    {
        static::init();

        if (array_key_exists(self::ENABLED, static::$config)) {
            return static::$config[self::ENABLED] ?? false;
        }

        return static::getParameterName() !== null;
    }
public static function isEnabled ( ) : bool { static :: init ( ) ; if ( array_key_exists ( self :: ENABLED , static :: $ config ) ) { return static :: $ config [ self :: ENABLED ] ?? false ; } return static :: getParameterName ( ) !== null ; }
Is CSRF check enabled in config or not

@return bool
@throws ConfigException
@throws \Koldy\Exception
Is CSRF check enabled in config or not