Sonata\MediaBundle\DependencyInjection\Compiler\AddProviderCompilerPass::fixSettings($container)
is deprecated. Please avoid using this method, use getExtensionConfig($container)
instead.
Providing a 2nd parameter for Sonata\MediaBundle\Metadata\ProxyMetadataBuilder::__construct() is deprecated
Before:
public function __construct(ContainerInterface $container, array $map = null)
After:
public function __construct(ContainerInterface $container)
Please avoid using this property!
Not providing the 4th argument for Sonata\MediaBundle\Thumbnail\ConsumerThumbail::__construct() is deprecated
Before:
__construct($id, ThumbnailInterface $thumbnail, BackendInterface $backend, EventDispatcherInterface $dispatcher = null)
After:
__construct($id, ThumbnailInterface $thumbnail, BackendInterface $backend, EventDispatcherInterface $dispatcher)
When creating a custom video provider, you have to implement the getReferenceUrl
method to establish
the media url.
All files under the Tests
directory are now correctly handled as internal test classes.
You can't extend them anymore, because they are only loaded when running internal tests.
More information can be found in the composer docs.
$container
property in Security/SessionDownloadStrategy
is deprecated. Use SessionInterface
$session
instead.
Before:
$downloadStrategy = new SessionDownloadStrategy($translator, $container, $times);
After:
$downloadStrategy = new SessionDownloadStrategy($translator, $session, $times);