Skip to content

Commit

Permalink
3.27.0
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh committed Nov 26, 2017
1 parent d0c583a commit 875374f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.27.0](https://github.com/sonata-project/SonataAdminBundle/compare/3.26.0...3.27.0) - 2017-11-26
### Added
- Added some Japanese messages
- Added `CRUDController::renderWithExtraParams` as a replacement for the `render` method

### Deprecated
- Deprecated `CRUDController::render`

### Fixed
- Problem with FormRenderer not having environment causing that inline collection was unusable on SF 3.4
- Deprecation warning for overriding `Controller::render` which is supposed to be final

## [3.26.0](https://github.com/sonata-project/SonataAdminBundle/compare/3.25.1...3.26.0) - 2017-11-22
### Added
- Add html tag attributes support for sonata_type_model_autocomplete form type
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.26 to 3.27
=========================

## Deprecated CRUDController::render()

Call `CRUDController::renderWithExtraParams()` instead.
Expand Down
7 changes: 1 addition & 6 deletions src/Controller/CRUDController.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,10 @@ public function setContainer(ContainerInterface $container = null)
*
* @return Response A Response instance
*
* @deprecated
* @deprecated since version 3.27, to be removed in 4.0. Use Sonata\AdminBundle\Controller\CRUDController instead.
*/
public function render($view, array $parameters = [], Response $response = null)
{
@trigger_error(
'Method '.__CLASS__.'::render has been renamed to '.__CLASS__.'::renderWithExtraParams.',
E_USER_DEPRECATED
);

return $this->renderWithExtraParams($view, $parameters, $response);
}

Expand Down

0 comments on commit 875374f

Please sign in to comment.