Skip to content

Commit

Permalink
Emit extension loaded event
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Nov 20, 2020
1 parent 9944dce commit 45eb2ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Runner/Extension/PharLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use PharIo\Manifest\Exception as ManifestException;
use PharIo\Manifest\ManifestLoader;
use PharIo\Version\Version as PharIoVersion;
use PHPUnit\Event;
use PHPUnit\Runner\Version;
use SebastianBergmann\FileIterator\Facade as FileIteratorFacade;

Expand Down Expand Up @@ -65,6 +66,11 @@ public function loadPharExtensionsInDirectory(string $directory): array
require $file;

$loadedExtensions[] = $manifest->getName()->asString() . ' ' . $manifest->getVersion()->getVersionString();

Event\Facade::emitter()->extensionLoaded(
$manifest->getName()->asString(),
$manifest->getVersion()->getVersionString()
);
}

return [
Expand Down

0 comments on commit 45eb2ee

Please sign in to comment.