Skip to content

Commit

Permalink
3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh committed Jul 22, 2016
1 parent ca9a8d2 commit 61558c8
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 7 deletions.
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
# Change Log
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.1.0](https://github.com/sonata-project/SonataMediaBundle/compare/3.0.0...3.1.0) - 2016-07-22
### Added
- Added `Sonata\MediaBundle\Listener\ORM\MediaEventSubscriber::onClear` to clear the `rootCategories` cache when the EntityManager is cleared
- Added `region` key to S3Client config
- Added `alt` attribute to thumbnail twig tag

### Changed
- Injection of `Session` instead of the whole `Container` in `Security/SessionDownloadStrategy`
- `Sonata\MediaBundle\Listener\ORM\MediaEventSubscriber::onClear` now subscribes to `onClear` too

### Deprecated
- `$container` property in `Security/SessionDownloadStrategy`
- Deprecated `Pool::$downloadSecurities` for `Pool::$downloadStrategies` property
- Deprecated `Pool::addDownloadSecurity` for `Pool::addDownloadStrategy` method
- Deprecated `Pool::getDownloadSecurity` for `Pool::getDownloadStrategy` method

### Fixed
- Restored `ApiDoc` and `QueryParam` use statements in `Api/GalleryController`
- Added missing `sonata-project/block-bundle` dependency
- Fixed media widget spanish translations
- Support for FOSRestBundle 2.0
- Fixed `ApiMediaType::getParent` compatibility with Symfony3 forms
- Fixed `MediaType::buildForm` compatibility with Symfony3 forms
- Fixed `MediaType::getParent` compatibility with Symfony3 forms
- Fixed `BaseVideoProvider::buildEditForm` compatibility with Symfony3 forms
- Fixed `BaseVideoProvider::buildCreateForm` compatibility with Symfony3 forms
- Fixed `BaseVideoProvider:: buildMediaType` compatibility with Symfony3 forms
- Fixed `FileProvider::buildEditForm` compatibility with Symfony3 forms
- Fixed `FileProvider::buildCreateForm` compatibility with Symfony3 forms
- Fixed `FileProvider::buildMediaType` compatibility with Symfony3 forms
- Fixed mixed-content error when loading Pixlr editor under https
- Gaufrette compatibility with Symfony 3
- Fix deprecated usage of `Admin` class
- Added missing `BaseProvider::$name` property
- Removed double translation in gallery edit form
- Reuse of root categories instances after the entity manager has been cleared

### Removed
- Internal test classes are now excluded from the autoloader
10 changes: 5 additions & 5 deletions Provider/Pool.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Pool
protected $contexts = array();

/**
* @deprecated Deprecated since version 3.x and will be removed in 4.0. Use $downloadStrategies instead
* @deprecated Deprecated since version 3.1 and will be removed in 4.0. Use $downloadStrategies instead
*
* @var DownloadStrategyInterface[]
*/
Expand Down Expand Up @@ -84,14 +84,14 @@ public function addProvider($name, MediaProviderInterface $instance)
}

/**
* @deprecated Deprecated since version 3.x, to be removed in 4.0
* @deprecated Deprecated since version 3.1, to be removed in 4.0
*
* @param string $name
* @param DownloadStrategyInterface $security
*/
public function addDownloadSecurity($name, DownloadStrategyInterface $security)
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 3.x and will be removed in 4.0.', E_USER_DEPRECATED);
@trigger_error('The '.__METHOD__.' method is deprecated since version 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);

$this->downloadSecurities[$name] = $security;

Expand Down Expand Up @@ -244,7 +244,7 @@ public function getProviderList()
}

/**
* @deprecated Deprecated since version 3.x, to be removed in 4.0
* @deprecated Deprecated since version 3.1, to be removed in 4.0
*
* @param MediaInterface $media
*
Expand All @@ -254,7 +254,7 @@ public function getProviderList()
*/
public function getDownloadSecurity(MediaInterface $media)
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 3.x and will be removed in 4.0.', E_USER_DEPRECATED);
@trigger_error('The '.__METHOD__.' method is deprecated since version 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);

return array_merge($this->getDownloadSecurity($media), $this->getDownloadStrategy($media));
}
Expand Down
4 changes: 2 additions & 2 deletions Security/SessionDownloadStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class SessionDownloadStrategy implements DownloadStrategyInterface
/**
* @var ContainerInterface
*
* @deprecated Since version 3.x, will be removed in 4.0.
* @deprecated Since version 3.1, will be removed in 4.0.
* NEXT_MAJOR : remove this property
*/
protected $container;
Expand Down Expand Up @@ -63,7 +63,7 @@ public function __construct(TranslatorInterface $translator, $session, $times)
if ($session instanceof ContainerInterface) {
@trigger_error(
'Using an instance of Symfony\Component\DependencyInjection\ContainerInterface is deprecated since
version 3.x and will be removed in 4.0.
version 3.1 and will be removed in 4.0.
Use Symfony\Component\HttpFoundation\Session\SessionInterface instead.',
E_USER_DEPRECATED
);
Expand Down
3 changes: 3 additions & 0 deletions UPGRADE-3.x.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
UPGRADE 3.x
===========

UPGRADE FROM 3.0 to 3.1
=======================

### Tests

All files under the ``Tests`` directory are now correctly handled as internal test classes.
Expand Down

0 comments on commit 61558c8

Please sign in to comment.