Skip to content

Commit

Permalink
Work around issue with amphp/parallel and PHARs
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Jan 8, 2018
1 parent 246a02b commit bb7e257
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/acme
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/usr/bin/env php
<?php

use Amp\File\BlockingDriver;
use Amp\Loop;
use Auryn\Injector;
use Kelunik\AcmeClient\AcmeFactory;
use League\CLImate\CLImate;
use function Amp\File\filesystem;

$logo = <<<LOGO
____ __________ ___ ___
Expand Down Expand Up @@ -105,6 +107,9 @@ if (!array_key_exists($argv[1], $commands)) {
exit(1);
}

// Use blocking driver for now, as amphp/parallel doesn't work inside PHARs
filesystem(new BlockingDriver);

/** @var \Kelunik\AcmeClient\Commands\Command $class */
$class = "Kelunik\\AcmeClient\\Commands\\" . ucfirst($argv[1]);
$definition = $class::getDefinition();
Expand Down

0 comments on commit bb7e257

Please sign in to comment.