我正在使用symfony二进制文件中的mercure。通过以下方式设置新项目后 symfony new mercuresymfony composer req make mercure annotationsuse Symfony\Component\Mercure\Update;
class MainController extends AbstractController然后在.env中设置JWT密钥 ME
=$(cat publisher.key.pub) \MERCURE_SUBSCRIBER_JWT_KEY=$(cat publisher.key.pub) \./mercure run -config Caddyfile.dev# Learn how to configure the Mercure.rocks Hub