public function initializeContext(Context $context) { if ($context instanceof VCRAwareContext) { $context->setVideorecorder($this->videorecorder); } }