public function __construct(LoggerInterface $logger)
{
$build = new \ReflectionMethod($this, 'buildCallback');
$runStdout = new \ReflectionMethod($this, 'runStdoutCallback');
$runStderr = new \ReflectionMethod($this, 'runStderrCallback');
$this->buildCallback = $build->getClosure($this);
$this->runStdoutCallback = $runStdout->getClosure($this);
$this->runStderrCallback = $runStderr->getClosure($this);
$this->logger = $logger;
}