Skip to content

Removed tabs in 2.8 docs #8220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions components/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,8 @@ builder:
);

$form = $this->createFormBuilder($defaults)
->add('task', TextType::class)
->add('dueDate', DateType::class)
->add('task', TextType::class)
->add('dueDate', DateType::class)
->getForm();

// ...
Expand Down Expand Up @@ -623,8 +623,8 @@ method:
public function newAction(Request $request)
{
$form = $this->createFormBuilder()
->add('task', TextType::class)
->add('dueDate', DateType::class)
->add('task', TextType::class)
->add('dueDate', DateType::class)
->getForm();

$form->handleRequest($request);
Expand Down Expand Up @@ -701,10 +701,10 @@ option when building each field:
public function newAction(Request $request)
{
$form = $this->createFormBuilder()
->add('task', TextType::class, array(
->add('task', TextType::class, array(
'constraints' => new NotBlank(),
))
->add('dueDate', DateType::class, array(
->add('dueDate', DateType::class, array(
'constraints' => array(
new NotBlank(),
new Type(\DateTime::class),
Expand Down
10 changes: 5 additions & 5 deletions serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ it in your configuration:
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
<framework:config>
<!-- ... -->
<framework:serializer enable-annotations="true" />
<!--
Alternatively, if you don't want to use annotations
<framework:serializer enabled="true" />
-->
<framework:serializer enable-annotations="true" />
<!--
Alternatively, if you don't want to use annotations
<framework:serializer enabled="true" />
-->
</framework:config>
</container>

Expand Down