File tree Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -418,9 +418,34 @@ All options can be documented using the
418
418
:method: `Symfony\\ Component\\ Config\\ Definition\\ Builder\\ NodeDefinition::info `
419
419
method.
420
420
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
+
421
432
The info will be printed as a comment when dumping the configuration tree
422
433
with the ``config:dump-reference `` command.
423
434
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
+ <config entries-per-page =" 25" />
448
+
424
449
.. versionadded :: 2.6
425
450
Since Symfony 2.6, the info will also be added to the exception message
426
451
when an invalid type is given.
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ According to `Wikipedia`_:
16
16
The License
17
17
-----------
18
18
19
- Copyright (c) 2004-2015 Fabien Potencier
19
+ Copyright (c) 2004-2016 Fabien Potencier
20
20
21
21
Permission is hereby granted, free of charge, to any person obtaining a copy
22
22
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ which makes all of this quite easy::
35
35
/**
36
36
* {@inheritDoc}
37
37
*/
38
- public function setUp()
38
+ protected function setUp()
39
39
{
40
40
self::bootKernel();
41
41
$this->em = static::$kernel->getContainer()
You can’t perform that action at this time.
0 commit comments