Skip to content

Commit

Permalink
Document the type of $mediaManager in the code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
maks-rafalko authored and greg0ire committed Mar 25, 2020
1 parent 0526344 commit 780f229
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/reference/usage.rst
Expand Up @@ -17,6 +17,7 @@ For instance, a Youtube video can be created and saved like this::
$media->setContext('user'); // video related to the user
$media->setProviderName('sonata.media.provider.youtube');

/** @var Sonata\MediaBundle\Model\MediaManagerInterface $mediaManager */
$mediaManager->save($media);

or this::
Expand Down

0 comments on commit 780f229

Please sign in to comment.