Skip to content

Commit 5b50614

Browse files
committed
feat(legacy-create-video): [golden-master] inline createVideo method
1 parent da9c61d commit 5b50614

File tree

1 file changed

+1
-5
lines changed
  • exercises/legacy_create_video/solutions/codely_php-symfony_golden-master/src/AppBundle/Controller

1 file changed

+1
-5
lines changed

exercises/legacy_create_video/solutions/codely_php-symfony_golden-master/src/AppBundle/Controller/VideoController.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function postVideoAction(Request $request)
3131
$courseId = $request->get('course_id');
3232
$connection = $this->getDoctrine()->getConnection();
3333

34-
list($title, $videoId) = $this->createVideo($title, $url, $courseId, $connection);
34+
list($title, $videoId) = $this->videoCreator->createVideo($title, $url, $courseId, $connection);
3535

3636
// And we return the video created
3737
return [
@@ -42,8 +42,4 @@ public function postVideoAction(Request $request)
4242
];
4343
}
4444

45-
private function createVideo($title, $url, $courseId, object $connection): array
46-
{
47-
return $this->videoCreator->createVideo($title, $url, $courseId, $connection);
48-
}
4945
}

0 commit comments

Comments
 (0)