Jump to:

4935 Posts in 16178 Topics by 1488 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Composer is creating full copies of modules under cms/ & framework/ - what are they?

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 494 Views
  • vwd
    Avatar
    Community Member
    158 Posts

    Composer is creating full copies of modules under cms/ & framework/ - what are they? Link to this post

    Hi,

    When I run composer update on my straight SS3.0.3 install (from the silverstripe.org download link), Composer goes ahead and downloads and creates what appears to be a copy of various packages within the respective directories...

    • framework/ --> framework/silverstripe-sapphire-77f7778
    • cms/ --> cms/silverstripe-silverstripe-cms-d9e1bec

    Are these backups of what was there before composer update?

    Also, Composer adds vendor/autoload.php and a bunch of files under vendor/composer/? What are all these for?

    Thank you.
    VWD.

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Composer is creating full copies of modules under cms/ & framework/ - what are they? Link to this post

    This is normal behaviour. Instead of putting your silverstripe modules as git submodules, svn externals you simply state your dependancies in the composer.json file and composer will download the modules (any dependancies as well) for you. You should then exclude all your composer'ed folders from your own version control (apart from composer.json and composer.lock). The autoloader stuff helps with automatically including classes from the library (but we don't make use of that feature at the moment as SS has it's own manifest builder)

  • vwd
    Avatar
    Community Member
    158 Posts

    Re: Composer is creating full copies of modules under cms/ & framework/ - what are they? Link to this post

    Thanks for your response Will.

    So what are the directories:

    • framework/silverstripe-sapphire-77f7778
    • cms/silverstripe-silverstripe-cms-d9e1bec

    Can I delete these? Are they backup directories? Composer seems to only create these directories when the module already is present before Composer takes control.

    Thanks for explaining what the vendor/autoload.php does.

    Thanks,
    VWD

    494 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.