Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9df83c0

Browse files
committed
Merge branch '2.8' into 3.0
2 parentsc7767ad +32eddf7 commit9df83c0

File tree

4 files changed

+32
-3
lines changed

4 files changed

+32
-3
lines changed

‎components/config/definition.rst‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,38 @@ All options can be documented using the
418418
:method:`Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::info`
419419
method.
420420

421+
..code-block::php
422+
423+
$rootNode
424+
->children()
425+
->integerNode('entries_per_page')
426+
->info('This value is only used for the search results page.')
427+
->defaultValue(25)
428+
->end()
429+
->end()
430+
;
431+
421432
The info will be printed as a comment when dumping the configuration tree
422433
with the ``config:dump-reference`` command.
423434

435+
In YAML you may have:
436+
437+
..code-block::yaml
438+
439+
# This value is only used for the search results page.
440+
entries_per_page:25
441+
442+
and in XML:
443+
444+
..code-block::xml
445+
446+
<!-- entries-per-page: This value is only used for the search results page.-->
447+
<configentries-per-page="25" />
448+
449+
..versionadded::2.6
450+
Since Symfony 2.6, the info will also be added to the exception message
451+
when an invalid type is given.
452+
424453
Optional Sections
425454
-----------------
426455

‎components/form/form_events.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ Creating and binding an event listener to the form is very easy::
306306
// If the data was submitted previously, the additional value that is
307307
// included in the request variables needs to be removed.
308308
if (true === $user['show_email']) {
309-
$form->add('email', EmailType::class
309+
$form->add('email', EmailType::class);
310310
} else {
311311
unset($user['email']);
312312
$event->setData($user);

‎contributing/code/license.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ According to `Wikipedia`_:
1616
The License
1717
-----------
1818

19-
Copyright (c) 2004-2015 Fabien Potencier
19+
Copyright (c) 2004-2016 Fabien Potencier
2020

2121
Permission is hereby granted, free of charge, to any person obtaining a copy
2222
of this software and associated documentation files (the "Software"), to deal

‎cookbook/testing/doctrine.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ which makes all of this quite easy::
3535
/**
3636
* {@inheritDoc}
3737
*/
38-
public function setUp()
38+
protected function setUp()
3939
{
4040
self::bootKernel();
4141

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp