WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #36335, comment 51


Ignore:
Timestamp:
06/06/2016 03:47:18 PM (4 years ago)
Author:
DvanKooten
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36335, comment 51

    v2 v3  
    1919    ]
    2020  },
     21  "config": {
     22    "vendor-dir": "wp-includes/autoloader"
     23  },
    2124  "require": {
    2225    "php": ">=5.2.14",
     
    3134    ],
    3235    "post-autoload-dump": [
    33       "xrstf\\Composer52\\Generator::onPostInstallCmd",
    34       "rm -rf wp-includes/autoloader && cp -r vendor wp-includes/autoloader"
     36      "xrstf\\Composer52\\Generator::onPostInstallCmd"
    3537    ]
    3638  }
     
    3840}}}
    3941
    40 '''Edit:''' scratch that, Composer uses relative directory paths so simply moving the autoloader won't work. @schlessera's approach is much better.
     42'''Edit:''' scratch that, Composer uses relative directory paths so simply moving the autoloader won't work. @schlessera's approach is much better so I've updated the example to reflect his suggestion.
    4143
    4244