public function actionDiff($id, $file)
{
$generator = $this->loadGenerator($id);
if ($generator->validate()) {
foreach ($generator->generate() as $f) {
if ($f->id === $file) {
return $this->renderPartial('diff', ['diff' => $f->diff()]);
}
}
}
throw new NotFoundHttpException("Code file not found: {$file}");
}