Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Commit

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

## [3.7.0](https://github.com/sonata-project/SonataCoreBundle/compare/3.6.0...3.7.0) - 2017-11-19
### Deprecated
- the form mapping feature

### Fixed
- Register commands as services to prevent deprecation notices on Symfony 3.4
- `twig_truncate_filter`, and `twig_wordwrap_filter` were broken
- `twig_truncate_filter`, and `twig_wordwrap_filter` were not properly deprecated
- forward-compatibility with sf4
- form mapping feature removal on sf4, it is now properly disabled

## [3.6.0](https://github.com/sonata-project/SonataCoreBundle/compare/3.5.1...3.6.0) - 2017-11-04
### Added
- Added dp_option "dp_pick_date" in BasePickerType
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.6 to 3.7
=======================

Using the form mapping feature is now deprecated. You should use FQCNs
everywhere form names are used, and disable this feature with the following
piece of configuration:
Expand Down
2 changes: 1 addition & 1 deletion src/Command/SonataListFormMappingCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Symfony\Component\HttpKernel\Kernel;

/**
* @deprecated since 3.x, to be removed in 4.0, the form mapping feature should be disabled.
* @deprecated since 3.7, to be removed in 4.0, the form mapping feature should be disabled.
*/
class SonataListFormMappingCommand extends ContainerAwareCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;

/**
* @deprecated since 3.x, to be removed in 4.0, the form mapping feature should be disabled.
* @deprecated since 3.7, to be removed in 4.0, the form mapping feature should be disabled.
*/
class FormFactoryCompilerPass extends FormPass
{
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/SonataCoreExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function configureFormFactory(ContainerBuilder $container, array $config)
}

@trigger_error(
'Relying on the form mapping feature is deprecated since 3.x and will be removed in 4.0. Please set the "sonata_core.form.mapping.enabled" configuration node to false to avoid this message.',
'Relying on the form mapping feature is deprecated since 3.7 and will be removed in 4.0. Please set the "sonata_core.form.mapping.enabled" configuration node to false to avoid this message.',
E_USER_DEPRECATED
);

Expand Down
2 changes: 1 addition & 1 deletion src/Form/Extension/DependencyInjectionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* This proxy class help to keep BC code with < SF2.8 form behavior by restoring
* the type as a code and not as a class.
*
* @deprecated since 3.x, to be removed in 4.0, the form mapping feature should be disabled.
* @deprecated since 3.7, to be removed in 4.0, the form mapping feature should be disabled.
*/
class DependencyInjectionExtension implements FormExtensionInterface
{
Expand Down

0 comments on commit d02ede4

Please sign in to comment.