Skip to content

Commit 2b10e54

Browse files
authored
Allow project-level autoload (#7)
1 parent 78c8c0f commit 2b10e54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

command.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
return;
1212
}
1313

14-
require_once( __DIR__ . '/vendor/autoload.php' );
14+
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
15+
require_once __DIR__ . '/vendor/autoload.php';
16+
}
1517

1618
WP_CLI::add_command( 'replicator', ReplicatorCommand::class );

0 commit comments

Comments
 (0)