function to initialise the csrfProtector work flow
Parameters:
$length - length of CSRF_AUTH_TOKEN to be generated
$action - int array, for different actions to be taken in case of failed validation
Returns:
void
Throws:
configFileNotFoundException - when configuration file is not found
incompleteConfigurationException - when all required fields in config
file are not available
public static init ( $length = null, $action = null ) |