`isMasterRequest` API function not available in Symfony 2.3

Changed to compared the request type with the HttpKernelInterface constant.