openbenches.org
openbenches.org copied to clipboard
Missing bin folder
When installing Symfony, and creating a new project - a bin folder is added to the project structure. This contains a file called : console.
This allows the user to issue the command : symfony console - this console is used as part of the composer install / symfony flex commands to clear the cache.
I had a go - and from what I can see the latest version of symfony is 6.3 - whereas the composer files seems to suggest that it was built against 6.2
@edent - is it possible to add the missing bin/console file, or should I go to 6.3?
currently when running composer install - the following error is displayed :
I can't add the /bin folder because that will be created by your Symfony install. And, I think, you may choose to install it somewhere else.
This was built against 6.2.7 - I guess it should work with 6.3.
The bin folder isn't created by a symfony install - but is created as part of the symfony new command. If I were to install symfony, then clone this project, then the file wouldn't be present. Issuing composer install installs the dependancies - but doesn't restore the missing bin/console file.
The only way to restore that is to create a new symfony project (using symfony new TESTPROJ --version 6.2) - and then copy the bin/console php file from that project to the OpenBenches clone.
There is a Stack Overflow article about this https://stackoverflow.com/questions/25530432/bin-console-missing-after-running-composer-install. - one of the answers suggests that it can be generated using composer require symfony/console, and then running composer install again - however I have tested that on a 6.2.x new project and was unable to get it to work.
I don't know enough about Docker to be able to help here, sorry. I just ran the Symfony installer on my web host.
should be fixed by #358