public function supports(Request $request)
    {
        $post = json_decode($request->getContent(), true);

        return !empty($post[self::EMAIL_FIELD]) && !empty($post[self::PASSWORD_FIELD]);
    }
public function supports(Request $request)
    {
        $post = json_decode($request->getContent(), true);

        return !empty($post[self::EMAIL_FIELD]) && !empty($post[self::PASSWORD_FIELD]);
    }
public function supports ( Request $ request ) { $ post = json_decode ( $ request -> getContent ( ) , true ) ; return ! empty ( $ post [ self :: EMAIL_FIELD ] ) && ! empty ( $ post [ self :: PASSWORD_FIELD ] ) ; }
1) Returns true if request has email and password in the json body

@param Request $request
@return bool
1 ) Returns true if request has email and password in the json body