joshdifabio / magento1-composer-bridge

1 stars 2 forks source link

Ensure include paths take priority over Composer packages #1

Closed joshdifabio closed 9 years ago

joshdifabio commented 9 years ago

Autoload priority should be:

joshdifabio commented 9 years ago

This is implemented.

joshdifabio commented 9 years ago

Although include paths take priority over Composer, the ordering of include paths is not yet right.

var_dump(explode(':', get_include_path()));

array(14) {
  [0] =>
  string(48) "/ampersand/builds/poundland/vendor/magento1/libs"
  [1] =>
  string(64) "/ampersand/builds/poundland/vendor/phpseclib/phpseclib/phpseclib"
  [2] =>
  string(52) "/ampersand/builds/poundland/vendor/phpunit/php-timer"
  [3] =>
  string(54) "/ampersand/builds/poundland/vendor/phpunit/php-invoker"
  [4] =>
  string(60) "/ampersand/builds/poundland/vendor/phpunit/php-text-template"
  [5] =>
  string(49) "/ampersand/builds/poundland/vendor/phpunit/dbunit"
  [6] =>
  string(47) "/ampersand/builds/poundland/vendor/symfony/yaml"
  [7] =>
  string(42) "/ampersand/builds/poundland/app/code/local"
  [8] =>
  string(46) "/ampersand/builds/poundland/app/code/community"
  [9] =>
  string(41) "/ampersand/builds/poundland/app/code/core"
  [10] =>
  string(31) "/ampersand/builds/poundland/lib"
  [11] =>
  string(1) "."
  [12] =>
  string(14) "/usr/share/php"
  [13] =>
  string(15) "/usr/share/pear"
}