D
D
Dmitry Koldyaev2015-03-02 12:03:08
symfony
Dmitry Koldyaev, 2015-03-02 12:03:08

How to restore composer.json for an already finished symfony2 project?

Good afternoon. A project on symphony2 came to support, but without the composer config (the vendor was added to the version control system).
Actually, the essence of the question is in the title: is it possible, and if so, how to restore the composer configuration for a finished project?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2015-03-02
@prototype_denis

If /vendor/composer/installed.json is left, then see the installed packages there.
And pull them out of there in composer.json. Then look for project-specific stuff, like non-standard paths for /src/App/AppBundle => \AppBudnle and stuff...
Make a backup anyway.
Just do not run "composer update", otherwise it will demolish everything if everything is empty in composer.json)))
I don't know any automatic solution to the problem, maybe someone else will tell you.
PS. Once you have git (or whatever you have), create a branch, roll back to the past where it still existed, unless of course in gitignore.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question