The idea is: Instead of launching Mercure Hub server directly in our command line like this:
We want to make it easier by using symfony command, therefore we can launch the server like this:
NB: We have been downloaded the archive corresponding to files that make Mercure Hub server works and where we find the executable mercure.exe and unzipped it in "mercure folder" which is in the root directory of symfony project.
Even if we run it like executable:
So How can we fix this and make it work in php. It seems it cannot work with absolute path.
Second Issue:
Let suppose we succeed passing the first issue and there is an alternative for that (which is not preferred one for me, so better to solve the first issue) by adding a required argument indicated the folder where mercure.exe is, like this:
So we modify our command class:
The output shows the following error:
JWT_KEY not recognized whereas it works perfectly when we type the full command in command line.
So, What are the reasons of these two issues and How to fix them?