Of course I look. A few things to remember:
- The
Symfony/vendors contains all the code associated with Symfony. This can be easily shared between applications. - The
Symfony/app folder contains application-related files, such as a config and cache, and should not be shared between applications. - The
Symfony/web folder contains a shared folder from which the application will run, and cannot be used. - The
Symfony/src folder contains your packages and can be used together, depending on your needs.
So at least do the following:
- Make copies of the
web and app folders. Save copies to the Symfony folder. AFAIK, there is no easy way to have these folders in different places. - In the new
app folder, edit both app.php and app_dev.php . Replace all links to the app folder with the name of your new / second application folder. - Run
php newapp/console assets:install newapp on the command line to install related assets.
I am sure that you can also copy the src folder, although I have not experimented with this. Reusing your packages is probably a good idea.
Jrgns source share