public __construct ( |
||
$callEventFactory | The call event factory to use. | |
$featureDetector | The feature detector to use. |
public function __construct(CallEventFactory $callEventFactory, FeatureDetector $featureDetector)
{
$this->callEventFactory = $callEventFactory;
$this->isGeneratorImplicitNextSupported = $featureDetector->isSupported('generator.implicit-next');
$this->isGeneratorReturnSupported = $featureDetector->isSupported('generator.return');
$this->isHhvm = $featureDetector->isSupported('runtime.hhvm');
}