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

Deprecate the form mapping feature #462

Merged

Conversation

greg0ire
Copy link
Contributor

@greg0ire greg0ire commented Nov 5, 2017

I am targeting this branch, because this is BC.

Changelog

### Deprecated
- the form mapping feature

To do

  • Update the documentation (old form names might still be used in there)

Subject

This feature allows users to use form names, just like, you know, before sf 2.8. Needless to say, we need to kill it with fire. It should have been conditionally deprecated as soon as we added support for sf 2.8

@greg0ire greg0ire added the minor label Nov 5, 2017
@greg0ire greg0ire force-pushed the deprecation_legacy_form_pass branch 4 times, most recently from d254f5f to 1564bcd Compare November 5, 2017 22:20
@@ -116,6 +116,10 @@ public function configureFormFactory(ContainerBuilder $container, array $config)

return;
}
@trigger_error(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blank line before @trigger_error ?

OskarStark
OskarStark previously approved these changes Nov 6, 2017

DoctrineORMSerializationType
----------------------------
Sonata\CoreBundle\Form\Type\DoctrineORMSerializationType
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about using short class names instead of FQCN for titles?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah let's do that!

OskarStark
OskarStark previously approved these changes Nov 6, 2017
@greg0ire
Copy link
Contributor Author

greg0ire commented Nov 6, 2017

Build probably failing because of 35a5b84

UPGRADE-3.x.md Outdated
@@ -1,6 +1,20 @@
UPGRADE 3.x
===========

UPGRADE FROM 3.6 to 3.7
=======================
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this title.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woops! Done.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it cached or is the title still available @greg0ire 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I must have pushed it again from work or home by accident :P

jlamur
jlamur previously approved these changes Nov 7, 2017
@@ -17,6 +17,9 @@
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\HttpKernel\Kernel;

/**
* @deprecated the form mapping feature should be disabled
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deprecated since... please follow the format described on the contributing guide.

@@ -14,6 +14,9 @@
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\FormPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;

/**
* @deprecated disable this compiler pass
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deprecated since... please follow the format described on the contributing guide.

@@ -20,6 +20,8 @@
/**
* 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 use FQCNs instead
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deprecated since... please follow the format described on the contributing guide.

@greg0ire greg0ire force-pushed the deprecation_legacy_form_pass branch 2 times, most recently from d1d9fd1 to 2be2783 Compare November 7, 2017 13:09
soullivaneuh
soullivaneuh previously approved these changes Nov 7, 2017
OskarStark
OskarStark previously approved these changes Nov 7, 2017
@soullivaneuh
Copy link
Member

@greg0ire It looks you did something wrong with your commit, we still see the old changes. 😕

@greg0ire greg0ire force-pushed the deprecation_legacy_form_pass branch 3 times, most recently from 4a926c4 to 82365d6 Compare November 9, 2017 07:54
@greg0ire
Copy link
Contributor Author

greg0ire commented Nov 9, 2017

@OskarStark @soullivaneuh should be ok now.

@OskarStark OskarStark merged commit 7c72ed8 into sonata-project:3.x Nov 13, 2017
@OskarStark
Copy link
Member

Thank you @greg0ire 👍

@greg0ire greg0ire deleted the deprecation_legacy_form_pass branch November 26, 2017 14:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants