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"composer.json` json" with each In-Portal installation (both In-Portal & Intechnic repository)run composer install command during installation of In-Portal for it to create `/vendor` folder
  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 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.

Tip

We might want consider shipping composer.phar in tools folder just in case if it's not installed globally on the server and user (not a developer) want to keep In-Portal installation simple without need to run additional commands in shell.

...

Related Tasks

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