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

Commit

Permalink
Streamline deprecation messages (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark committed Jan 10, 2020
1 parent 04e051a commit ec5f858
Show file tree
Hide file tree
Showing 65 changed files with 76 additions and 76 deletions.
2 changes: 1 addition & 1 deletion src/CoreBundle/Color/Colors.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* NEXT_MAJOR: remove this class.
*
* @deprecated since version 3.10, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.10, to be removed in 4.0.
*
* Handles A list of all HTML colors.
* @see http://www.w3schools.com/HTML/html_colornames.asp
Expand Down
2 changes: 1 addition & 1 deletion 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.12.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.12.0, to be removed in 4.0.
*/
class SonataDumpDoctrineMetaCommand extends ContainerAwareCommand
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Command/SonataListFormMappingCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use Symfony\Component\HttpKernel\Kernel;

/**
* @deprecated since 3.7, to be removed in 4.0, the form mapping feature should be disabled.
* @deprecated since sonata-project/core-bundle 3.7, to be removed in 4.0, the form mapping feature should be disabled.
*/
class SonataListFormMappingCommand extends ContainerAwareCommand
{
Expand Down
4 changes: 2 additions & 2 deletions src/CoreBundle/Component/NativeSlugify.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*
* NEXT_MAJOR: remove this class.
*
* @deprecated since 2.3, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 2.3, to be removed in 4.0.
*
* @author Thomas Rabaix <thomas.rabaix@gmail.com>
*/
Expand All @@ -32,7 +32,7 @@ class NativeSlugify
/**
* @return mixed|string
*
* @deprecated since 2.3, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 2.3, to be removed in 4.0.
*/
public function slugify($text)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class_alias(
/**
* @author Hugo Briand <briand@ekino.com>
*
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.13.0, to be removed in 4.0.
*/
interface StatusClassRendererInterface extends \Sonata\Twig\Status\StatusClassRendererInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Date/MomentFormatConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class_alias(

if (false) {
/**
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.13.0, to be removed in 4.0.
*/
class MomentFormatConverter extends \Sonata\Form\Date\MomentFormatConverter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;

/**
* @deprecated since 3.7, to be removed in 4.0, the form mapping feature should be disabled.
* @deprecated since sonata-project/core-bundle 3.7, to be removed in 4.0, the form mapping feature should be disabled.
*/
class FormFactoryCompilerPass implements CompilerPassInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Exception/InvalidParameterException.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
);

/**
* @deprecated since 3.12.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.12.0, to be removed in 4.0.
*/
class InvalidParameterException extends \RuntimeException
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/FlashMessage/FlashManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class_alias(
/**
* @author Vincent Composieux <composieux@ekino.com>
*
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 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 @@ -28,7 +28,7 @@ class_alias(

if (false) {
/**
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 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 @@ -23,7 +23,7 @@
);

/**
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.13.0, to be removed in 4.0.
*/
class FixCheckboxDataListener extends \Sonata\Form\EventListener\FixCheckboxDataListener
{
Expand All @@ -35,7 +35,7 @@ public static function getSubscribedEvents()
/**
* NEXT_MAJOR: remove this method.
*
* @deprecated Since version 2.3, to be renamed in 4.0.
* @deprecated since sonata-project/core-bundle 2.3, to be renamed in 4.0.
* Use {@link preSubmit} instead
*/
public function preBind(FormEvent $event)
Expand Down
6 changes: 3 additions & 3 deletions src/CoreBundle/Form/EventListener/ResizeFormListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
);

/**
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.13.0, to be removed in 4.0.
*/
class ResizeFormListener extends \Sonata\Form\EventListener\ResizeFormListener
{
Expand All @@ -39,7 +39,7 @@ public static function getSubscribedEvents()
/**
* NEXT_MAJOR: remove this method.
*
* @deprecated Since version 2.3, to be renamed in 4.0.
* @deprecated since sonata-project/core-bundle 2.3, to be renamed in 4.0.
* Use {@link preSubmit} instead
*/
public function preBind(FormEvent $event)
Expand All @@ -59,7 +59,7 @@ public function preBind(FormEvent $event)
/**
* NEXT_MAJOR: remove this method.
*
* @deprecated Since version 2.3, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 2.3, to be removed in 4.0.
* Use {@link onSubmit} instead
*/
public function onBind(FormEvent $event)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,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.7, to be removed in 4.0, the form mapping feature should be disabled.
* @deprecated since sonata-project/core-bundle 3.7, to be removed in 4.0, the form mapping feature should be disabled.
*/
class DependencyInjectionExtension implements FormExtensionInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class_alias(

if (false) {
/**
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.13.0, to be removed in 4.0.
*/
class BaseDoctrineORMSerializationType extends \Sonata\Form\Type\BaseDoctrineORMSerializationType
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Form/Type/BasePickerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class_alias(

if (false) {
/**
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.13.0, to be removed in 4.0.
*/
abstract class BasePickerType extends \Sonata\Form\Type\BasePickerType
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Form/Type/BaseStatusType.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class_alias(

if (false) {
/**
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.13.0, to be removed in 4.0.
*/
abstract class BaseStatusType extends \Sonata\Form\Type\BaseStatusType
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Form/Type/BooleanType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.13.0, to be removed in 4.0.
*/
class BooleanType extends \Sonata\Form\Type\BooleanType
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Form/Type/CollectionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.13.0, to be removed in 4.0.
*/
class CollectionType extends \Sonata\Form\Type\CollectionType
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Form/Type/ColorSelectorType.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/**
* NEXT_MAJOR: remove this class.
*
* @deprecated since version 3.5, to be removed in 4.0. Use ColorType instead
* @deprecated since sonata-project/core-bundle 3.5, to be removed in 4.0. Use ColorType instead
*/
class ColorSelectorType extends AbstractType
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Form/Type/ColorType.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* NEXT_MAJOR: remove this class.
*
* @deprecated since version 3.10, to be removed in 4.0. Use Symfony\Component\Form\Extension\Core\Type\ColorType instead
* @deprecated since sonata-project/core-bundle 3.10, to be removed in 4.0. Use Symfony\Component\Form\Extension\Core\Type\ColorType instead
*/
final class ColorType extends AbstractType
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Form/Type/DatePickerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.13.0, to be removed in 4.0.
*/
class DatePickerType extends \Sonata\Form\Type\DatePickerType
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Form/Type/DateRangePickerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.13.0, to be removed in 4.0.
*/
class DateRangePickerType extends \Sonata\Form\Type\DateRangePickerType
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Form/Type/DateRangeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.13.0, to be removed in 4.0.
*/
class DateRangeType extends \Sonata\Form\Type\DateRangeType
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Form/Type/DateTimePickerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.13.0, to be removed in 4.0.
*/
class DateTimePickerType extends \Sonata\Form\Type\DateTimePickerType
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Form/Type/DateTimeRangePickerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.13.0, to be removed in 4.0.
*/
class DateTimeRangePickerType extends \Sonata\Form\Type\DateTimeRangePickerType
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Form/Type/DateTimeRangeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.13.0, to be removed in 4.0.
*/
class DateTimeRangeType extends \Sonata\Form\Type\DateTimeRangeType
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Form/Type/DoctrineORMSerializationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* NEXT_MAJOR: remove this class.
*
* @deprecated Class to be remove once we only support Symfony3.X
* @deprecated Class to be remove once we only support Symfony 3.x
*/
class DoctrineORMSerializationType extends BaseDoctrineORMSerializationType
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Form/Type/EqualType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.13.0, to be removed in 4.0.
*/
class EqualType extends \Sonata\Form\Type\EqualType
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Form/Type/ImmutableArrayType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Symfony\Component\Form\FormBuilderInterface;

/**
* @deprecated Since version 3.13.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.13.0, to be removed in 4.0.
*/
class ImmutableArrayType extends \Sonata\Form\Type\ImmutableArrayType
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Form/Type/StatusType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* NEXT_MAJOR: remove this class.
*
* @deprecated Class to be remove once we only support Symfony3.X
* @deprecated Class to be remove once we only support Symfony 3.x
*/
class StatusType extends BaseStatusType
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Form/Type/TranslatableChoiceType.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/**
* NEXT_MAJOR: remove this class.
*
* @deprecated Deprecated as of SonataCoreBundle 2.2.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 2.2.0, to be removed in 4.0.
* Use form type "choice" with "translation_domain" option instead
*/
class TranslatableChoiceType extends AbstractType
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Model/Adapter/AdapterChain.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class_alias(

if (false) {
/**
* @deprecated since 3.12.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.12.0, to be removed in 4.0.
*/
class AdapterChain extends \Sonata\Doctrine\Adapter\AdapterChain implements AdapterInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Model/Adapter/AdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class_alias(

if (false) {
/**
* @deprecated since 3.12.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.12.0, to be removed in 4.0.
*/
interface AdapterInterface extends \Sonata\Doctrine\Adapter\AdapterInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Model/Adapter/DoctrineORMAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class_alias(
/**
* This is a port of the DoctrineORMAdminBundle / ModelManager class.
*
* @deprecated since 3.12.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.12.0, to be removed in 4.0.
*/
class DoctrineORMAdapter extends \Sonata\Doctrine\Adapter\ORM\DoctrineORMAdapter implements AdapterInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Model/Adapter/DoctrinePHPCRAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class_alias(
/**
* This is a port of the DoctrineORMAdminBundle / ModelManager class.
*
* @deprecated since 3.12.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.12.0, to be removed in 4.0.
*/
class DoctrinePHPCRAdapter extends \Sonata\Doctrine\Adapter\PHPCR\DoctrinePHPCRAdapter implements AdapterInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Model/BaseDocumentManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class_alias(
/**
* @author Hugo Briand <briand@ekino.com>
*
* @deprecated since 3.12.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.12.0, to be removed in 4.0.
*/
abstract class BaseDocumentManager extends \Sonata\Doctrine\Document\BaseDocumentManager implements ManagerInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Model/BaseEntityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class_alias(
/**
* @author Sylvain Deloux <sylvain.deloux@ekino.com>
*
* @deprecated since 3.12.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.12.0, to be removed in 4.0.
*/
abstract class BaseEntityManager extends \Sonata\Doctrine\Entity\BaseEntityManager implements ManagerInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Model/BaseManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class_alias(
/**
* @author Hugo Briand <briand@ekino.com>
*
* @deprecated since 3.12.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.12.0, to be removed in 4.0.
*/
abstract class BaseManager extends \Sonata\Doctrine\Model\BaseManager implements ManagerInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Model/BasePHPCRManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class_alias(

if (false) {
/**
* @deprecated since 3.12.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.12.0, to be removed in 4.0.
*/
abstract class BasePHPCRManager extends \Sonata\Doctrine\Document\BasePHPCRManager implements ManagerInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/CoreBundle/Model/ManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class_alias(
/**
* @author Sylvain Deloux <sylvain.deloux@ekino.com>
*
* @deprecated since 3.12.0, to be removed in 4.0.
* @deprecated since sonata-project/core-bundle 3.12.0, to be removed in 4.0.
*/
interface ManagerInterface extends \Sonata\Doctrine\Model\ManagerInterface
{
Expand Down

0 comments on commit ec5f858

Please sign in to comment.