Skip to content

Commit 59e17c9

Browse files
committed
3.5.0
1 parent 594368e commit 59e17c9

File tree

11 files changed

+62
-11
lines changed

11 files changed

+62
-11
lines changed

Admin/AbstractAdmin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,7 @@ public function setSubject($subject)
16451645
$message = <<<'EOT'
16461646
You are trying to set entity an instance of "%s",
16471647
which is not the one registered with this admin class ("%s").
1648-
This is deprecated since 3.x and will no longer be supported in 4.0.
1648+
This is deprecated since 3.5 and will no longer be supported in 4.0.
16491649
EOT;
16501650

16511651
trigger_error(

CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,54 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [3.5.0](https://github.com/sonata-project/SonataAdminBundle/compare/3.4.0...3.5.0) - 2016-08-29
6+
### Added
7+
- Export fields names are now translated
8+
- Added PL translations
9+
- Configuration to change the default route used to generate the link to the parent object inside a breadcrumb, when in a child admin
10+
- Docs for this configuration
11+
- Twig blocks to simplify the template override.
12+
- Added test for `AdminBundle\Menu\Matcher\Voter\ChildrenVoter`
13+
- Added class name support for `AbstractAdmin::configureDatagridFilters`
14+
- Added `ShowMapper::removeGroup` method
15+
16+
### Changed
17+
- Changed css `margin-left: -20px` of checkbox.
18+
- Updated spanish batch confirmation message translation.
19+
- Changed injection of `$container` to `$adminPool` in `Twig/GlobalVariables`
20+
- use `RuntimeException` instead of non existing `RunTimeException`
21+
- `AbstractAdmin::setSubject` in order to check that given `$subject` matches registered admin class entity.
22+
- Added the action name to title_batch_confirmation translation.
23+
- Added the object name to message_delete_confirmation translation.
24+
- Added the action name to title_batch_confirmation translation.
25+
- Move actions buttons display logic from templates to `AbstractAdmin::configureActionButtons`
26+
- Moved translation of breadcrumbs to twig template
27+
- Moved translation of batch action_label to twig template
28+
- Move actions buttons display logic from templates to `AbstractAdmin::configureActionButtons`
29+
- Widget tests should extend `AbstractWidgetTestCase`
30+
31+
### Deprecated
32+
- The `$container` property in `Twig/GlobalVariables`
33+
34+
### Fixed
35+
- The "batch" checkbox at the top of the list would not work when iCheck is disabled.
36+
- Not working `read_only` option on Twig with Symfony 3
37+
- Fixed PT-BR translations
38+
- XSS Vulnerability in breadcrumbs
39+
- Handle Symfony BC for Datagrid hidden types
40+
- Fixed duplicate translation for list filters
41+
- Fixed visibility of block `sonata_top_nav_menu` contents
42+
- Fix how metadata information are retrieved when admin information are dumped
43+
- Symfony 3 support in `AclMatrixType`
44+
- Symfony 3 type support in `AclMatrixType`
45+
- Fixed translation in browser titles breadcrumb
46+
- Fixed translation of entities in breadcrumb
47+
- Standardize the global form error
48+
49+
### Removed
50+
- Internal test classes are now excluded from the autoloader
51+
- Removed unnecessary security checks in `standard_layout.html.twig`
52+
553
## [3.4.0](https://github.com/sonata-project/SonataAdminBundle/compare/3.3.2...3.4.0) - 2016-07-05
654
### Added
755
- Support for select2 v4 (`select2.full.js` file is needed)

Form/Type/Filter/ChoiceType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ChoiceType extends AbstractType
3131
const TYPE_EQUAL = 3;
3232

3333
/**
34-
* @deprecated since 3.x, to be removed with 4.0
34+
* @deprecated since 3.5, to be removed with 4.0
3535
*
3636
* @var TranslatorInterface
3737
*/

Form/Type/Filter/DateRangeType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class DateRangeType extends AbstractType
2828
const TYPE_NOT_BETWEEN = 2;
2929

3030
/**
31-
* @deprecated since 3.x, to be removed with 4.0
31+
* @deprecated since 3.5, to be removed with 4.0
3232
*
3333
* @var TranslatorInterface
3434
*/

Form/Type/Filter/DateTimeRangeType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class DateTimeRangeType extends AbstractType
2828
const TYPE_NOT_BETWEEN = 2;
2929

3030
/**
31-
* @deprecated since 3.x, to be removed with 4.0
31+
* @deprecated since 3.5, to be removed with 4.0
3232
*
3333
* @var TranslatorInterface
3434
*/

Form/Type/Filter/DateTimeType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class DateTimeType extends AbstractType
3939
const TYPE_NOT_NULL = 7;
4040

4141
/**
42-
* @deprecated since 3.x, to be removed with 4.0
42+
* @deprecated since 3.5, to be removed with 4.0
4343
*
4444
* @var TranslatorInterface
4545
*/

Form/Type/Filter/DateType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class DateType extends AbstractType
3939
const TYPE_NOT_NULL = 7;
4040

4141
/**
42-
* @deprecated since 3.x, to be removed with 4.0
42+
* @deprecated since 3.5, to be removed with 4.0
4343
*
4444
* @var TranslatorInterface
4545
*/

Form/Type/Filter/NumberType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class NumberType extends AbstractType
3535
const TYPE_LESS_THAN = 5;
3636

3737
/**
38-
* @deprecated since 3.x, to be removed with 4.0
38+
* @deprecated since 3.5, to be removed with 4.0
3939
*
4040
* @var TranslatorInterface
4141
*/

Form/Type/ModelTypeList.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Sonata\AdminBundle\Form\Type;
1313

1414
@trigger_error(
15-
'The '.__NAMESPACE__.'\ModelTypeList class is deprecated since version 3.x and will be removed in 4.0.'
15+
'The '.__NAMESPACE__.'\ModelTypeList class is deprecated since version 3.5 and will be removed in 4.0.'
1616
.' Use '.__NAMESPACE__.'\ModelListType instead.',
1717
E_USER_DEPRECATED
1818
);
@@ -23,7 +23,7 @@
2323
* - a list modal to select the targeted entities
2424
* - a clear selection link.
2525
*
26-
* @deprecated since version 3.x, to be removed in 4.0. Use ModelListType instead
26+
* @deprecated since version 3.5, to be removed in 4.0. Use ModelListType instead
2727
*/
2828
class ModelTypeList extends ModelListType
2929
{

Twig/GlobalVariables.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class GlobalVariables
2222
/**
2323
* @var ContainerInterface
2424
*
25-
* @deprecated Since version 3.x, will be removed in 4.0.
25+
* @deprecated Since version 3.5, will be removed in 4.0.
2626
* NEXT_MAJOR : remove this property
2727
*/
2828
protected $container;
@@ -41,7 +41,7 @@ public function __construct($adminPool)
4141
if ($adminPool instanceof ContainerInterface) {
4242
@trigger_error(
4343
'Using an instance of Symfony\Component\DependencyInjection\ContainerInterface is deprecated since
44-
version 3.x and will be removed in 4.0. Use Sonata\AdminBundle\Admin\Pool instead.',
44+
version 3.5 and will be removed in 4.0. Use Sonata\AdminBundle\Admin\Pool instead.',
4545
E_USER_DEPRECATED
4646
);
4747

0 commit comments

Comments
 (0)