function EventDispatcher::__construct
Same name in this branch
- 11.1.x vendor/symfony/event-dispatcher/EventDispatcher.php \Symfony\Component\EventDispatcher\EventDispatcher::__construct()
Constructor.
Parameters
PartialComposer $composer The composer instance:
IOInterface $io The IOInterface instance:
ProcessExecutor $process:
File
-
vendor/
composer/ composer/ src/ Composer/ EventDispatcher/ EventDispatcher.php, line 78
Class
- EventDispatcher
- The Event Dispatcher.
Namespace
Composer\EventDispatcherCode
public function __construct(PartialComposer $composer, IOInterface $io, ?ProcessExecutor $process = null) {
$this->composer = $composer;
$this->io = $io;
$this->process = $process ?? new ProcessExecutor($io);
$this->eventStack = [];
}