Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To ease Composer integration with In-Portal I'm proposing to take a bit different approach. For full discussion please go to: [composer] Use Composer.

The idea is to:

  1. include "composer.json" with each In-Portal installation (both In-Portal & Intechnic repository)
  2. as one of installation prerequisites assert that "vendor/autoload.php" is present and if it doesn't show composer instructions:
    1. Install Composer by following instructions at https://getcomposer.org/download/
    2. Install Vendors using instructions from https://getcomposer.org/doc/03-cli.md#install
  3. add "/vendor" folder to "svn:ignore", so nobody will commit it by accident
  4. run "composer install --no-dev" also when releasing new In-Portal version for "vendor" folder to be included in produced ZIP
  5. add inclusion of "vendor/autoload.php" into startup.php

This way the "vendor" folder (which might contain outdated dependencies) is never commited and is created automatically while project is installed.

Related Tasks

Jira Legacy
serverSystem Jira
serverId513b375f-8291-3313-9d9f-704c39b1f915
keyINP-1394