Added implementation for Gaufrette\Adapter\FileFactory
and Gaufrette\Adapter\StreamFactory
.
Method createFileStream()
is deprecated in favor of createStream()
.
Argument 3 (?array $metadata = null
) in method write()
is deprecated.
This interface is added to provide a clearer API for FormatThumbnail
. It allows to know if a Thumbnail
object can be generated with custom Resizer
instances, not the ones provided by
the file provider.
If you have custom Thumbnail
generator, please implement this interface if you need
custom resizers.
This integration is deprecated because the php packages are not up to date. On master this integration will be removed. There is no replacement for it.
$session
property in Security/SessionDownloadStrategy
is deprecated. Use RequestStack
$requestStack
instead.
Before:
$downloadStrategy = new SessionDownloadStrategy($translator, $session, $times);
After:
$downloadStrategy = new SessionDownloadStrategy($translator, $requestStack, $times);
Controllers for NelmioApiDocBundle v2 were moved under Sonata\MediaBundle\Controller\Api\Legacy\
namespace and controllers for NelmioApiDocBundle v3 were added as replacement. If you extend them, you must ensure they are using the corresponding inheritance.
Usages of Symfony\Component\Translation\TranslatorInterface
are deprecated in favor of Symfony\Contracts\Translation\TranslatorInterface
. You MUST replace all references to them in your code and inject correct object into:
Sonata\MediaBundle\Security\ForbiddenDownloadStrategy
Sonata\MediaBundle\Security\PublicDownloadStrategy
Sonata\MediaBundle\Security\RolesDownloadStrategy
Sonata\MediaBundle\Security\SessionDownloadStrategy
The previous signature of CloudFront::__construct()
is deprecated.
Before:
public function __construct(string $path, string $key, string $secret, string $distributionId, ?string $region = null, ?string $version = null)
After:
public function __construct(Aws\CloudFront\CloudFrontClient $client, string $distributionId, string $path)
Returning false
or any value not present in the CDNInterface::STATUS_*
constants from CloudFront::getFlushStatus()
is deprecated.
The methods CloudFront::setClient()
and CloudFront::getStatusList()
are deprecated.
The services sonata.media.adapter.filesystem.mogilefs
, sonata.media.filesystem.mogilefs
and the configuration node "sonata_media.filesystem.mogilefs" are deprecated.
The configuration node "sonata_media.filesystem.s3.sdk_version" is deprecated. The version of aws/aws-sdk-php is automatically inferred from the installed package.
The configuration nodes "sonata_media.cdn.cloudfront.region" and "sonata_media.cdn.cloudfront.version" are required when aws/aws-sdk-php 3.x is installed.
The Guzzle
and Buzz
dependencies are deprecated and will be replaced with the abstract http-client
interface, so you can choose your preferred client implementation. You should adapt to the new BaseVideoProvider::__construct()
signature.
Command classes were updated to inherit from Command
instead of deprecated ContainerAwareCommand
. Direct access to container will
no longer be possible. Services that were retrieved from the DIC MUST be injected instead.
Registering SonataEasyExtendsBundle
bundle is deprecated, it SHOULD NOT be registered.
Register SonataDoctrineBundle
bundle instead.
Some classes have been renamed, the old types are just aliases for the new ones. You should replace all references to them in your code.
Sonata\MediaBundle\Command\DefaultGenerator
is deprecated in favor ofSonata\MediaBundle\Generator\IdGenerator
Sonata\MediaBundle\Command\ODMGenerator
is deprecated in favor ofSonata\MediaBundle\Generator\UuidGenerator
Sonata\MediaBundle\Command\PHPCRGenerator
is deprecated in favor ofSonata\MediaBundle\Generator\PathGenerator
Doctrine ORM join columns from GalleryHasMedia entity towards both Gallery and Media entities has been changed. Now
they include the onDelete="CASCADE"
option: this allows to delete a media if included in a gallery (and vice-versa).
You should upgrade your database in a safe way after upgrading your vendors.
Sonata\MediaBundle\DependencyInjection\Compiler\AddProviderCompilerPass::fixSettings($container)
is deprecated. Please avoid using this method, use getExtensionConfig($container)
instead.
Sonata\MediaBundle\Controller\Controller\MediaController::liipImagineFilterAction($path, $filter) is deprecated. Please avoid using this method. If you define controller_action in liip_imagine configs please remove it.
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);