Skip to content

Commit

Permalink
3.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed Oct 21, 2019
1 parent 780472e commit 0f54b61
Show file tree
Hide file tree
Showing 98 changed files with 219 additions and 97 deletions.
122 changes: 122 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,128 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.21.0](https://github.com/sonata-project/SonataMediaBundle/compare/3.20.1...3.21.0) - 2019-10-21
### Added
- Add missing translation for admin menu

### Changed
- Changed parameter type in `MediaInterface::setCdnFlushIdentifier`
- Add `breadcrumb` as default context for seo blocks
- the alt tag of media picture elements to the media description, falling back
to the name when no description is present
- Bumped "twig/twig" dependency to "^2.9";
- Changed usages of `{% spaceless %}` tag, which is deprecated as of Twig 1.38
with `{% apply spaceless %}` filter;
- Changed usages of `{% for .. if .. %}`, which is deprecated as of Twig 2.10
with `filter` filter'.

### Fixed
- Using deprecated `\Twig_` classes without namespace.
- Respect "field_description.options.route.name" value at
`list_image.html.twig` instead of using hardcoded "edit".
- Possibility to resolve Twig dependency to versions that don't support arrow
functions on Twig filters.

### Deprecated
- Extending classes marked as final:
* `Sonata\MediaBundle\Admin\GalleryAdmin`
* `Sonata\MediaBundle\Admin\GalleryHasMediaAdmin`
* `Sonata\MediaBundle\Admin\ODM\MediaAdmin`
* `Sonata\MediaBundle\Admin\ORM\MediaAdmin`
* `Sonata\MediaBundle\Admin\PHPCR\GalleryAdmin`
* `Sonata\MediaBundle\Admin\PHPCR\MediaAdmin`
* `Sonata\MediaBundle\Block\Breadcrumb\GalleryIndexBreadcrumbBlockService`
* `Sonata\MediaBundle\Block\Breadcrumb\GalleryViewBreadcrumbBlockService`
* `Sonata\MediaBundle\Block\Breadcrumb\MediaViewBreadcrumbBlockService`
* `Sonata\MediaBundle\Block\FeatureMediaBlockService`
* `Sonata\MediaBundle\Block\GalleryBlockService`
* `Sonata\MediaBundle\Block\GalleryListBlockService`
* `Sonata\MediaBundle\Block\MediaBlockService`
* `Sonata\MediaBundle\CDN\CloudFront`
* `Sonata\MediaBundle\CDN\Fallback`
* `Sonata\MediaBundle\CDN\PantherPortal`
* `Sonata\MediaBundle\CDN\Server`
* `Sonata\MediaBundle\Command\AddMassMediaCommand`
* `Sonata\MediaBundle\Command\AddMediaCommand`
* `Sonata\MediaBundle\Command\CleanMediaCommand`
* `Sonata\MediaBundle\Command\FixMediaContextCommand`
* `Sonata\MediaBundle\Command\MigrateToJsonTypeCommand`
* `Sonata\MediaBundle\Command\RefreshMetadataCommand`
* `Sonata\MediaBundle\Command\RemoveThumbsCommand`
* `Sonata\MediaBundle\Command\SyncThumbsCommand`
* `Sonata\MediaBundle\Command\UpdateCdnStatusCommand`
* `Sonata\MediaBundle\Consumer\CreateThumbnailConsumer`
* `Sonata\MediaBundle\Controller\Api\GalleryController`
* `Sonata\MediaBundle\Controller\Api\MediaController`
* `Sonata\MediaBundle\Controller\GalleryAdminController`
* `Sonata\MediaBundle\Controller\GalleryController`
* `Sonata\MediaBundle\Controller\MediaAdminController`
* `Sonata\MediaBundle\Controller\MediaController`
* `Sonata\MediaBundle\DependencyInjection\Compiler\AddProviderCompilerPass`
* `Sonata\MediaBundle\DependencyInjection\Compiler\GlobalVariablesCompilerPass`
* `Sonata\MediaBundle\DependencyInjection\Compiler\SecurityContextCompilerPass`
* `Sonata\MediaBundle\DependencyInjection\Compiler\ThumbnailCompilerPass`
* `Sonata\MediaBundle\DependencyInjection\Configuration`
* `Sonata\MediaBundle\DependencyInjection\SonataMediaExtension`
* `Sonata\MediaBundle\Document\GalleryManager`
* `Sonata\MediaBundle\Document\MediaManager`
* `Sonata\MediaBundle\Entity\GalleryManager`
* `Sonata\MediaBundle\Entity\MediaManager`
* `Sonata\MediaBundle\Extra\ApiMediaFile`
* `Sonata\MediaBundle\Extra\Pixlr`
* `Sonata\MediaBundle\Filesystem\Local`
* `Sonata\MediaBundle\Filesystem\Replicate`
* `Sonata\MediaBundle\Form\DataTransformer\ProviderDataTransformer`
* `Sonata\MediaBundle\Form\DataTransformer\ServiceProviderDataTransformer`
* `Sonata\MediaBundle\Form\Type\ApiDoctrineMediaType`
* `Sonata\MediaBundle\Form\Type\ApiGalleryHasMediaType`
* `Sonata\MediaBundle\Form\Type\ApiGalleryType`
* `Sonata\MediaBundle\Form\Type\ApiMediaType`
* `Sonata\MediaBundle\Form\Type\MediaType`
* `Sonata\MediaBundle\Generator\DefaultGenerator`
* `Sonata\MediaBundle\Generator\ODMGenerator`
* `Sonata\MediaBundle\Generator\PHPCRGenerator`
* `Sonata\MediaBundle\Listener\ODM\MediaEventSubscriber`
* `Sonata\MediaBundle\Listener\ORM\MediaEventSubscriber`
* `Sonata\MediaBundle\Listener\PHPCR\MediaEventSubscriber`
* `Sonata\MediaBundle\Metadata\AmazonMetadataBuilder`
* `Sonata\MediaBundle\Metadata\NoopMetadataBuilder`
* `Sonata\MediaBundle\Metadata\ProxyMetadataBuilder`
* `Sonata\MediaBundle\PHPCR\BaseGalleryHasMediaRepository`
* `Sonata\MediaBundle\PHPCR\BaseGalleryRepository`
* `Sonata\MediaBundle\PHPCR\BaseMediaRepository`
* `Sonata\MediaBundle\PHPCR\GalleryManager`
* `Sonata\MediaBundle\PHPCR\MediaManager`
* `Sonata\MediaBundle\Provider\DailyMotionProvider`
* `Sonata\MediaBundle\Provider\FileProvider`
* `Sonata\MediaBundle\Provider\ImageProvider`
* `Sonata\MediaBundle\Provider\Pool`
* `Sonata\MediaBundle\Provider\VimeoProvider`
* `Sonata\MediaBundle\Provider\YouTubeProvider`
* `Sonata\MediaBundle\Resizer\SimpleResizer`
* `Sonata\MediaBundle\Resizer\SquareResizer`
* `Sonata\MediaBundle\Security\ForbiddenDownloadStrategy`
* `Sonata\MediaBundle\Security\PublicDownloadStrategy`
* `Sonata\MediaBundle\Security\RolesDownloadStrategy`
* `Sonata\MediaBundle\Security\SessionDownloadStrategy`
* `Sonata\MediaBundle\Serializer\GallerySerializerHandler`
* `Sonata\MediaBundle\Serializer\MediaSerializerHandler`
* `Sonata\MediaBundle\SonataMediaBundle`
* `Sonata\MediaBundle\Thumbnail\ConsumerThumbnail`
* `Sonata\MediaBundle\Thumbnail\FormatThumbnail`
* `Sonata\MediaBundle\Thumbnail\LiipImagineThumbnail`
* `Sonata\MediaBundle\Twig\Extension\FormatterMediaExtension`
* `Sonata\MediaBundle\Twig\Extension\MediaExtension`
* `Sonata\MediaBundle\Twig\GlobalVariables`
* `Sonata\MediaBundle\Twig\Node\MediaNode`
* `Sonata\MediaBundle\Twig\Node\PathNode`
* `Sonata\MediaBundle\Twig\Node\ThumbnailNode`
* `Sonata\MediaBundle\Twig\TokenParser\MediaTokenParser`
* `Sonata\MediaBundle\Twig\TokenParser\PathTokenParser`
* `Sonata\MediaBundle\Twig\TokenParser\ThumbnailTokenParser`
* `Sonata\MediaBundle\Validator\Constraints\ValidMediaFormat`
* `Sonata\MediaBundle\Validator\FormatValidator`

## [3.20.1](https://github.com/sonata-project/SonataMediaBundle/compare/3.20.0...3.20.1) - 2019-06-13

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/GalleryAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class GalleryAdmin extends AbstractAdmin
{
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/GalleryHasMediaAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use Symfony\Component\Form\Extension\Core\Type\HiddenType;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class GalleryHasMediaAdmin extends AbstractAdmin
{
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/ODM/MediaAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Sonata\MediaBundle\Admin\BaseMediaAdmin as Admin;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class MediaAdmin extends Admin
{
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/ORM/MediaAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class MediaAdmin extends Admin
{
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/PHPCR/GalleryAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Sonata\MediaBundle\Admin\GalleryAdmin as BaseGalleryAdmin;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class GalleryAdmin extends BaseGalleryAdmin
{
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/PHPCR/MediaAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Sonata\MediaBundle\Admin\BaseMediaAdmin as Admin;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class MediaAdmin extends Admin
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* BlockService for view gallery.
*
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*
* @author Sylvain Deloux <[email protected]>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Block/Breadcrumb/GalleryViewBreadcrumbBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* BlockService for view gallery.
*
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*
* @author Sylvain Deloux <[email protected]>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Block/Breadcrumb/MediaViewBreadcrumbBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* BlockService for view Media.
*
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*
* @author Sylvain Deloux <[email protected]>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Block/FeatureMediaBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
use Symfony\Component\OptionsResolver\OptionsResolver;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*
* @author Thomas Rabaix <[email protected]>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Block/GalleryBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
use Symfony\Component\Templating\EngineInterface;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*
* @author Thomas Rabaix <[email protected]>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Block/GalleryListBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
use Symfony\Component\OptionsResolver\OptionsResolver;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class GalleryListBlockService extends AbstractAdminBlockService
{
Expand Down
2 changes: 1 addition & 1 deletion src/Block/MediaBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
use Symfony\Component\Templating\EngineInterface;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*
* @author Thomas Rabaix <[email protected]>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/CDN/CloudFront.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* to the new distribution. For more information about the charges for
* invalidation, see Paying for Object Invalidation.
*
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*
* @uses \CloudFrontClient for stablish connection with CloudFront service
*
Expand Down
2 changes: 1 addition & 1 deletion src/CDN/Fallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace Sonata\MediaBundle\CDN;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class Fallback implements CDNInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/CDN/PantherPortal.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* Any requests until the rate limit is no longer exceeded will receive this response.
*/
/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class PantherPortal implements CDNInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/CDN/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace Sonata\MediaBundle\CDN;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class Server implements CDNInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/AddMassMediaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Symfony\Component\Console\Output\OutputInterface;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class AddMassMediaCommand extends BaseCommand
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/AddMediaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Symfony\Component\Console\Output\OutputInterface;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class AddMediaCommand extends BaseCommand
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/CleanMediaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
use Symfony\Component\Finder\Finder;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class CleanMediaCommand extends ContainerAwareCommand
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/FixMediaContextCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Symfony\Component\Console\Output\OutputInterface;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class FixMediaContextCommand extends ContainerAwareCommand
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/MigrateToJsonTypeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Symfony\Component\Console\Output\OutputInterface;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class MigrateToJsonTypeCommand extends BaseCommand
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/RefreshMetadataCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Useful if you have existing media content and added new formats.
*/
/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class RefreshMetadataCommand extends BaseCommand
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/RemoveThumbsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* Useful if you have existing media content and added new formats.
*/
/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class RemoveThumbsCommand extends BaseCommand
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/SyncThumbsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* Useful if you have existing media content and added new formats.
*/
/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class SyncThumbsCommand extends BaseCommand
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/UpdateCdnStatusCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* This command can be used to update CDN status for medias that are currently
* in status flushing.
*
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*
* @author Javier Spagnoletti <[email protected]>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Consumer/CreateThumbnailConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class CreateThumbnailConsumer implements ConsumerInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Api/GalleryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*
* @author Hugo Briand <[email protected]>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Api/MediaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
/**
* Note: Media is plural, medium is singular (at least according to FOSRestBundle route generator).
*
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*
* @author Hugo Briand <[email protected]>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/GalleryAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
use Symfony\Component\HttpFoundation\Response;

/**
* @final since sonata-project/media-bundle 3.x
* @final since sonata-project/media-bundle 3.21.0
*/
class GalleryAdminController extends Controller
{
Expand Down
Loading

0 comments on commit 0f54b61

Please sign in to comment.