Skip to content

Commit

Permalink
3.28.0
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed Oct 30, 2020
1 parent 7707160 commit 99dcae1
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 11 deletions.
92 changes: 92 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,98 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.28.0](https://github.com/sonata-project/SonataMediaBundle/compare/3.27.0...3.28.0) - 2020-10-30
### Added
- [[#1823](https://github.com/sonata-project/SonataMediaBundle/pull/1823)]
Added CDN flush status check at `BaseProvider::flushCdn()` in order to
resolve previous flushing processes. ([@phansys](https://github.com/phansys))
- [[#1848](https://github.com/sonata-project/SonataMediaBundle/pull/1848)]
Missing translations ([@gremo](https://github.com/gremo))
- [[#1834](https://github.com/sonata-project/SonataMediaBundle/pull/1834)]
Support for symfony/validator ^5.1 ([@jorrit](https://github.com/jorrit))
- [[#1664](https://github.com/sonata-project/SonataMediaBundle/pull/1664)]
Added support for `psr/http-client` in `BaseVideoProvider`
([@core23](https://github.com/core23))

### Changed
- [[#1848](https://github.com/sonata-project/SonataMediaBundle/pull/1848)]
`gallery` translation key into `Gallery` ([@gremo](https://github.com/gremo))
- [[#1821](https://github.com/sonata-project/SonataMediaBundle/pull/1821)] When
using Doctrine ORM or MongoDB the service `sonata.media.admin.media.manager`
is now an alias of `sonata.admin.manager.orm` or
`sonata.admin.manager.doctrine_mongodb` instead of a separate service
implemented by the same class. ([@jorrit](https://github.com/jorrit))

### Deprecated
- [[#1815](https://github.com/sonata-project/SonataMediaBundle/pull/1815)]
Deprecated method signature for `CloudFront::__construct()`;
([@phansys](https://github.com/phansys))
- [[#1815](https://github.com/sonata-project/SonataMediaBundle/pull/1815)]
Deprecated methods `CloudFront::setClient()` and
`CloudFront::getStatusList()`; ([@phansys](https://github.com/phansys))
- [[#1815](https://github.com/sonata-project/SonataMediaBundle/pull/1815)]
Deprecated returning `false` or any value not present in the
`CDNInterface::STATUS_*` constants from `CloudFront::getFlushStatus()`.
([@phansys](https://github.com/phansys))
- [[#1841](https://github.com/sonata-project/SonataMediaBundle/pull/1841)]
`sonata.media.adapter.filesystem.mogilefs` and
`sonata.media.filesystem.mogilefs` services;
([@phansys](https://github.com/phansys))
- [[#1841](https://github.com/sonata-project/SonataMediaBundle/pull/1841)]
`sonata_media.filesystem.mogilefs` configuration node.
([@phansys](https://github.com/phansys))
- [[#1664](https://github.com/sonata-project/SonataMediaBundle/pull/1664)]
Deprecate `Guzzle` and `Buzz` usage in `BaseVideoProvider`
([@core23](https://github.com/core23))
- [[#1814](https://github.com/sonata-project/SonataMediaBundle/pull/1814)]
Deprecated `sonata_media.filesystem.s3.sdk_version` configuration node.
([@phansys](https://github.com/phansys))

### Fixed
- [[#1815](https://github.com/sonata-project/SonataMediaBundle/pull/1815)]
Fixed getting values returned by `CloudFrontClient::createInvalidation()` and
`CloudFrontClient::getInvalidation()` methods when using
"aws/aws-sdk-php:^3.0". ([@phansys](https://github.com/phansys))
- [[#1823](https://github.com/sonata-project/SonataMediaBundle/pull/1823)]
Fixed marking the medium as not CDN synced (`Media::$cdnIsFlushable`) in
`BaseProvider::flushCdn()` and `UpdateCdnStatusCommand`.
([@phansys](https://github.com/phansys))
- [[#1847](https://github.com/sonata-project/SonataMediaBundle/pull/1847)]
Error on YouTube media creation in `ImageUploadDimensionValidator`
([@tambait](https://github.com/tambait))
- [[#1832](https://github.com/sonata-project/SonataMediaBundle/pull/1832)]
Fixed validity of `*.orm.xml` mapping files.
([@jorrit](https://github.com/jorrit))
- [[#1821](https://github.com/sonata-project/SonataMediaBundle/pull/1821)]
Deprecation notice in `Sonata\DoctrineORMAdminBundle\Model\ModelManager` and
`Sonata\DoctrineMongoDBAdminBundle\Model\ModelManager`.
([@jorrit](https://github.com/jorrit))
- [[#1716](https://github.com/sonata-project/SonataMediaBundle/pull/1716)]
Invalid mongodb xml mapping for BaseGallery.mongodb.xml and
BaseMedia.mongodb.xml files ([@SylvanoTombo](https://github.com/SylvanoTombo))
- [[#1816](https://github.com/sonata-project/SonataMediaBundle/pull/1816)]
Controller reference of some media API routes.
([@jorrit](https://github.com/jorrit))
- [[#1814](https://github.com/sonata-project/SonataMediaBundle/pull/1814)]
Fixed calls to deprecated method `AwsClient::factory()` when using
aws/aws-sdk-php:^3.0; ([@phansys](https://github.com/phansys))
- [[#1814](https://github.com/sonata-project/SonataMediaBundle/pull/1814)]
Fixed passing required arguments to "sonata.media.cdn.cloudfront" service
when using aws/aws-sdk-php:^3.0; ([@phansys](https://github.com/phansys))
- [[#1814](https://github.com/sonata-project/SonataMediaBundle/pull/1814)]
Fixed respecting `sonata_media.filesystem.s3.region`,
`sonata_media.filesystem.s3.version` and `sonata_media.filesystem.s3.endpoint`
configuration nodes when using aws/aws-sdk-php:^2.0.
([@phansys](https://github.com/phansys))

### Removed
- [[#1836](https://github.com/sonata-project/SonataMediaBundle/pull/1836)] Dev
dependency on sonata-project/formatter-bundle.
([@jorrit](https://github.com/jorrit))
- [[#1818](https://github.com/sonata-project/SonataMediaBundle/pull/1818)]
Remove support for `doctrine/mongodb-odm` <2.0
([@franmomu](https://github.com/franmomu))

## [3.27.0](https://github.com/sonata-project/SonataMediaBundle/compare/3.26.0...3.27.0) - 2020-09-02
### Added
- [[#1786](https://github.com/sonata-project/SonataMediaBundle/pull/1786)]
Expand Down
12 changes: 6 additions & 6 deletions src/CDN/CloudFront.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function __construct(
// NEXT_MAJOR: Remove the following conditional block.
if (!$clientOrPath instanceof CloudFrontClient) {
@trigger_error(sprintf(
'Passing another type than %s as argument 1 for "%s()" is deprecated since sonata-project/media-bundle 3.x'
'Passing another type than %s as argument 1 for "%s()" is deprecated since sonata-project/media-bundle 3.28'
.' and will throw a %s error in version 4.0. You must pass these arguments: CDN client, CDN distribution id, CDN path.',
CloudFrontClient::class,
__METHOD__,
Expand Down Expand Up @@ -216,7 +216,7 @@ public function getFlushStatus($identifier)

if (false === $status) {
@trigger_error(sprintf(
'Returning a value not present in the `%s::STATUS_*` constants from %s() is deprecated since sonata-project/media-bundle 3.x'
'Returning a value not present in the `%s::STATUS_*` constants from %s() is deprecated since sonata-project/media-bundle 3.28'
.' and will not be possible in version 4.0.',
CDNInterface::class,
__METHOD__
Expand All @@ -233,7 +233,7 @@ public function getFlushStatus($identifier)
}

/**
* @deprecated since sonata-project/media-bundle 3.x, to be removed in version 4.0.
* @deprecated since sonata-project/media-bundle 3.28, to be removed in version 4.0.
*
* @static
*
Expand All @@ -242,7 +242,7 @@ public function getFlushStatus($identifier)
public static function getStatusList()
{
@trigger_error(sprintf(
'Method "%s()" is deprecated since sonata-project/media-bundle 3.x and will be removed in version 4.0.',
'Method "%s()" is deprecated since sonata-project/media-bundle 3.28 and will be removed in version 4.0.',
__METHOD__
), E_USER_DEPRECATED);

Expand All @@ -259,14 +259,14 @@ public static function getStatusList()
/**
* NEXT_MAJOR: Remove this method.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in version 4.0.
* @deprecated since sonata-project/media-bundle 3.28, to be removed in version 4.0.
*
* @param CloudFrontClient $client
*/
public function setClient($client)
{
@trigger_error(sprintf(
'Method "%s()" is deprecated since sonata-project/media-bundle 3.x and will be removed in version 4.0.',
'Method "%s()" is deprecated since sonata-project/media-bundle 3.28 and will be removed in version 4.0.',
__METHOD__
), E_USER_DEPRECATED);

Expand Down
2 changes: 1 addition & 1 deletion src/Client/BuzzClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* NEXT_MAJOR: Remove this class.
*
* @deprecated since sonata-project/media-bundle 3.x, to be removed in version 4.0.
* @deprecated since sonata-project/media-bundle 3.28, to be removed in version 4.0.
*/
final class BuzzClient implements ClientInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ private function addFilesystemSection(ArrayNodeDefinition $node): void
->setDeprecated(...$this->getBackwardCompatibleArgumentsForSetDeprecated(
'The node "%node%" is deprecated and will be removed in version 4.0'
.' since the version for aws/aws-sdk-php is inferred automatically.',
'3.x'
'3.28'
))
->beforeNormalization()
->ifString()
Expand Down Expand Up @@ -317,7 +317,7 @@ private function addFilesystemSection(ArrayNodeDefinition $node): void
->arrayNode('mogilefs')
->setDeprecated(...$this->getBackwardCompatibleArgumentsForSetDeprecated(
'The node "%node%" is deprecated and will be removed in version 4.0.',
'3.x'
'3.28'
))
->children()
->scalarNode('domain')->isRequired()->end()
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/config/gaufrette.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<argument type="service" id="logger"/>
</service>
<service id="sonata.media.adapter.filesystem.mogilefs" class="Gaufrette\Adapter\MogileFS">
<deprecated>The "%service_id%" service is deprecated since sonata-project/media-bundle 3.x and will be removed in version 4.0.</deprecated>
<deprecated>The "%service_id%" service is deprecated since sonata-project/media-bundle 3.28 and will be removed in version 4.0.</deprecated>
<argument/>
<argument/>
</service>
Expand All @@ -42,7 +42,7 @@
<argument/>
</service>
<service id="sonata.media.filesystem.mogilefs" class="Gaufrette\Filesystem">
<deprecated>The "%service_id%" service is deprecated since sonata-project/media-bundle 3.x and will be removed in version 4.0.</deprecated>
<deprecated>The "%service_id%" service is deprecated since sonata-project/media-bundle 3.28 and will be removed in version 4.0.</deprecated>
<argument type="service" id="sonata.media.adapter.filesystem.mogilefs"/>
</service>
<service id="sonata.media.filesystem.ftp" class="Gaufrette\Filesystem">
Expand Down

0 comments on commit 99dcae1

Please sign in to comment.