add a function in your controller:
public function isCsrfTokenValid($intention, $token_name = '_csrf_token')
{
return $this->get('form.csrf_provider')
->isCsrfTokenValid($intention, $this->getRequest()->get($token_name));
}
in your Action:
if ($this->isCsrfTokenValid('default_select_city_check')) {
//do something you want
}