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

Commit

Permalink
3.16.2
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed Mar 12, 2019
1 parent a5db046 commit d0f376d
Show file tree
Hide file tree
Showing 55 changed files with 118 additions and 114 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.16.1](https://github.com/sonata-project/SonataCoreBundle/compare/3.16.0...3.16.1) - 2019-02-16
## [3.16.2](https://github.com/sonata-project/SonataCoreBundle/compare/3.16.1...3.16.2) - 2019-03-11
### Fixed
- do not initialize select2 twice
- some deprecations

## [3.16.1](https://github.com/sonata-project/SonataCoreBundle/compare/3.16.0...3.16.1) - 2019-02-16
### Fixed
- error message about being unable to load the `StatusRuntime`

Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Command/SonataDumpDoctrineMetaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Return useful data on the database schema.
*
* @deprecated since 3.x, to be removed in 4.0.
* @deprecated since 3.12.0, to be removed in 4.0.
*/
class SonataDumpDoctrineMetaCommand extends ContainerAwareCommand
{
Expand Down Expand Up @@ -67,7 +67,7 @@ protected function configure()
protected function initialize(InputInterface $input, OutputInterface $output)
{
@trigger_error(
'The '.__CLASS__.' class is deprecated since version 3.x and will be removed in 4.0.',
'The '.__CLASS__.' class is deprecated since version 3.12.0 and will be removed in 4.0.',
E_USER_DEPRECATED
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

if (!interface_exists('\Sonata\Twig\Status\StatusClassRendererInterface', false)) {
@trigger_error(
'The '.__NAMESPACE__.'\StatusClassRendererInterface class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\StatusClassRendererInterface class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Twig\Status\StatusClassRendererInterface instead.',
E_USER_DEPRECATED
);
Expand All @@ -30,7 +30,7 @@ class_alias(
/**
* @author Hugo Briand <briand@ekino.com>
*
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
interface StatusClassRendererInterface extends \Sonata\Twig\Status\StatusClassRendererInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Date/MomentFormatConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

if (!class_exists(\Sonata\Form\Date\MomentFormatConverter::class, false)) {
@trigger_error(
'The '.__NAMESPACE__.'\MomentFormatConverter class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\MomentFormatConverter class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Form\Date\MomentFormatConverter instead.',
E_USER_DEPRECATED
);
Expand All @@ -28,7 +28,7 @@ class_alias(

if (false) {
/**
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
class MomentFormatConverter extends \Sonata\Form\Date\MomentFormatConverter
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/DependencyInjection/SonataCoreExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function load(array $configs, ContainerBuilder $container)
if (!isset($bundles['SonataDoctrineBundle'])) {
// NEXT_MAJOR remove the alias, throw an exception
@trigger_error(sprintf(
'Not registering bundle "%s" is deprecated since 3.x, registering it will be mandatory in 4.0',
'Not registering bundle "%s" is deprecated since 3.12.0, registering it will be mandatory in 4.0',
SonataDoctrineBundle::class
), E_USER_DEPRECATED);
$container->setAlias(
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Exception/InvalidParameterException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
namespace Sonata\CoreBundle\Exception;

@trigger_error(
'The '.__NAMESPACE__.'\InvalidParameterException class is deprecated since version 3.x and will be removed in 4.0.',
'The '.__NAMESPACE__.'\InvalidParameterException class is deprecated since version 3.12.0 and will be removed in 4.0.',
E_USER_DEPRECATED
);

/**
* @deprecated since 3.x, to be removed in 4.0.
* @deprecated since 3.12.0, to be removed in 4.0.
*/
class InvalidParameterException extends \RuntimeException
{
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/FlashMessage/FlashManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

if (!class_exists(\Sonata\Twig\FlashMessage\FlashManager::class, false)) {
@trigger_error(
'The '.__NAMESPACE__.'\FlashManager class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\FlashManager class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Twig\FlashMessage\FlashManager instead.',
E_USER_DEPRECATED
);
Expand All @@ -30,7 +30,7 @@ class_alias(
/**
* @author Vincent Composieux <composieux@ekino.com>
*
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
class FlashManager extends \Sonata\Twig\FlashMessage\FlashManager
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

if (!class_exists(\Sonata\Form\DataTransformer\BooleanTypeToBooleanTransformer::class, false)) {
@trigger_error(
'The '.__NAMESPACE__.'\BooleanTypeToBooleanTransformer class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\BooleanTypeToBooleanTransformer class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Form\DataTransformer\BooleanTypeToBooleanTransformer instead.',
E_USER_DEPRECATED
);
Expand All @@ -28,7 +28,7 @@ class_alias(

if (false) {
/**
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
class BooleanTypeToBooleanTransformer extends \Sonata\Form\DataTransformer\BooleanTypeToBooleanTransformer
{
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Form/EventListener/FixCheckboxDataListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
use Symfony\Component\Form\FormEvents;

@trigger_error(
'The '.__NAMESPACE__.'\FixCheckboxDataListener class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\FixCheckboxDataListener class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Form\EventListener\FixCheckboxDataListener instead.',
E_USER_DEPRECATED
);

/**
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
class FixCheckboxDataListener extends \Sonata\Form\EventListener\FixCheckboxDataListener
{
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Form/EventListener/ResizeFormListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
use Symfony\Component\Form\FormEvents;

@trigger_error(
'The '.__NAMESPACE__.'\ResizeFormListener class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\ResizeFormListener class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Form\EventListener\ResizeFormListener instead.',
E_USER_DEPRECATED
);

/**
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
class ResizeFormListener extends \Sonata\Form\EventListener\ResizeFormListener
{
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Form/Type/BaseDoctrineORMSerializationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

if (!class_exists(\Sonata\Form\Type\BaseDoctrineORMSerializationType::class, false)) {
@trigger_error(
'The '.__NAMESPACE__.'\BaseDoctrineORMSerializationType class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\BaseDoctrineORMSerializationType class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Form\Type\BaseDoctrineORMSerializationType instead.',
E_USER_DEPRECATED
);
Expand All @@ -28,7 +28,7 @@ class_alias(

if (false) {
/**
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
class BaseDoctrineORMSerializationType extends \Sonata\Form\Type\BaseDoctrineORMSerializationType
{
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Form/Type/BasePickerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

if (!class_exists(\Sonata\Form\Type\BasePickerType::class, false)) {
@trigger_error(
'The '.__NAMESPACE__.'\BasePickerType class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\BasePickerType class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Form\Type\BasePickerType instead.',
E_USER_DEPRECATED
);
Expand All @@ -28,7 +28,7 @@ class_alias(

if (false) {
/**
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
abstract class BasePickerType extends \Sonata\Form\Type\BasePickerType
{
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Form/Type/BaseStatusType.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

if (!class_exists(\Sonata\Form\Type\BaseStatusType::class, false)) {
@trigger_error(
'The '.__NAMESPACE__.'\BaseStatusType class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\BaseStatusType class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Form\Type\BaseStatusType instead.',
E_USER_DEPRECATED
);
Expand All @@ -28,7 +28,7 @@ class_alias(

if (false) {
/**
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
abstract class BaseStatusType extends \Sonata\Form\Type\BaseStatusType
{
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Form/Type/BooleanType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
class BooleanType extends \Sonata\Form\Type\BooleanType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
@trigger_error(
'The '.__NAMESPACE__.'\BooleanType class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\BooleanType class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Form\Type\BooleanType instead.',
E_USER_DEPRECATED
);
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Form/Type/CollectionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
class CollectionType extends \Sonata\Form\Type\CollectionType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
@trigger_error(
'The '.__NAMESPACE__.'\CollectionType class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\CollectionType class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Form\Type\CollectionType instead.',
E_USER_DEPRECATED
);
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Form/Type/DatePickerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
class DatePickerType extends \Sonata\Form\Type\DatePickerType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
@trigger_error(
'The '.__NAMESPACE__.'\DatePickerType class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\DatePickerType class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Form\Type\DatePickerType instead.',
E_USER_DEPRECATED
);
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Form/Type/DateRangePickerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
class DateRangePickerType extends \Sonata\Form\Type\DateRangePickerType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
@trigger_error(
'The '.__NAMESPACE__.'\DateRangePickerType class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\DateRangePickerType class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Form\Type\DateRangePickerType instead.',
E_USER_DEPRECATED
);
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Form/Type/DateRangeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
class DateRangeType extends \Sonata\Form\Type\DateRangeType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
@trigger_error(
'The '.__NAMESPACE__.'\DateRangeType class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\DateRangeType class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Form\Type\DateRangeType instead.',
E_USER_DEPRECATED
);
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Form/Type/DateTimePickerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
class DateTimePickerType extends \Sonata\Form\Type\DateTimePickerType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
@trigger_error(
'The '.__NAMESPACE__.'\DateTimePickerType class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\DateTimePickerType class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Form\Type\DateTimePickerType instead.',
E_USER_DEPRECATED
);
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Form/Type/DateTimeRangePickerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
class DateTimeRangePickerType extends \Sonata\Form\Type\DateTimeRangePickerType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
@trigger_error(
'The '.__NAMESPACE__.'\DateTimeRangePickerType class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\DateTimeRangePickerType class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Form\Type\DateTimeRangePickerType instead.',
E_USER_DEPRECATED
);
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Form/Type/DateTimeRangeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
class DateTimeRangeType extends \Sonata\Form\Type\DateTimeRangeType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
@trigger_error(
'The '.__NAMESPACE__.'\DateTimeRangeType class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\DateTimeRangeType class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Form\Type\DateTimeRangeType instead.',
E_USER_DEPRECATED
);
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Form/Type/EqualType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
class EqualType extends \Sonata\Form\Type\EqualType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
@trigger_error(
'The '.__NAMESPACE__.'\EqualType class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\EqualType class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Form\Type\EqualType instead.',
E_USER_DEPRECATED
);
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Form/Type/ImmutableArrayType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.x, to be removed in 4.0.
* @deprecated Since version 3.13.0, to be removed in 4.0.
*/
class ImmutableArrayType extends \Sonata\Form\Type\ImmutableArrayType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
@trigger_error(
'The '.__NAMESPACE__.'\ImmutableArrayType class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\ImmutableArrayType class is deprecated since version 3.13.0 and will be removed in 4.0.'
.' Use Sonata\Form\Type\ImmutableArrayType instead.',
E_USER_DEPRECATED
);
Expand Down

0 comments on commit d0f376d

Please sign in to comment.