public static function check() { $cookie = Cookie::get(CSRF_COOKIE_NAME); if ($cookie !== false) { // GET REQUEST // CHECK POST } }
public static function getCookie($name) { self::build(); return Cookie::get($name); }