Skip to content

Commit

Permalink
Allow project-level autoload (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd authored Jun 14, 2019
1 parent 78c8c0f commit 2b10e54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion command.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
return;
}

require_once( __DIR__ . '/vendor/autoload.php' );
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require_once __DIR__ . '/vendor/autoload.php';
}

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

0 comments on commit 2b10e54

Please sign in to comment.