Newest symfony installer vs composer

前端 未结 3 1774
一个人的身影
一个人的身影 2021-02-05 16:02

I\'d like to know whats the difference when creating new symfony project with new symfony installer that has appeared last time and old-way composer.

I\'ve installed lat

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-05 16:30

    Symfony2 Installer will downloaded it from the web site ( in this case: http://symfony.com/download?v=Symfony_Standard_Vendors_2.6.1.zip ).

    To see the differences between symfony installer and the classic composer create-project is enough to take a look at both composer.lock: https://www.diffchecker.com/oig86oki

    On the left the composer.lock generated after composer create-project, on the right symfony installer. It was obvious to everyone that Symfony2 downloaded from an archive could not have the lastest packages. So, do the update with composer update.

    Again, on the left the composer.lock of composer create-project, on the right the new composer.lock after the update: https://www.diffchecker.com/lj5j2eap

    As we expected. But in the vendor dir there are not the same number of file. Some folders are not there. Some folders with functional tests are not downloaded with symfony installer. You need to force composer to update all packages, or reinstall them.

提交回复
热议问题