wp-migrations icon indicating copy to clipboard operation
wp-migrations copied to clipboard

Add possibility set vendor basename

Open vbryan opened this issue 3 years ago • 0 comments

Composer provide possibility to setup vendor installation path: https://getcomposer.org/doc/06-config.md#vendor-dir

Currently if vendor path != 'vendor' your library goes to infinite loop at:

while ( basename( $base_path ) != 'vendor' ) {
    $base_path = dirname( $base_path );
}

That PR allow setup vendor name on create new migrator instance.

vbryan avatar Apr 21 '21 19:04 vbryan