Skip to content

Commit

Permalink
Merge branch '2.8' into 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Jan 7, 2016
2 parents c7767ad + 32eddf7 commit 9df83c0
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
29 changes: 29 additions & 0 deletions components/config/definition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,38 @@ All options can be documented using the
:method:`Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::info`
method.

.. code-block:: php
$rootNode
->children()
->integerNode('entries_per_page')
->info('This value is only used for the search results page.')
->defaultValue(25)
->end()
->end()
;
The info will be printed as a comment when dumping the configuration tree
with the ``config:dump-reference`` command.

In YAML you may have:

.. code-block:: yaml
# This value is only used for the search results page.
entries_per_page: 25
and in XML:

.. code-block:: xml
<!-- entries-per-page: This value is only used for the search results page. -->
<config entries-per-page="25" />
.. versionadded:: 2.6
Since Symfony 2.6, the info will also be added to the exception message
when an invalid type is given.

Optional Sections
-----------------

Expand Down
2 changes: 1 addition & 1 deletion components/form/form_events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ Creating and binding an event listener to the form is very easy::
// If the data was submitted previously, the additional value that is
// included in the request variables needs to be removed.
if (true === $user['show_email']) {
$form->add('email', EmailType::class
$form->add('email', EmailType::class);
} else {
unset($user['email']);
$event->setData($user);
Expand Down
2 changes: 1 addition & 1 deletion contributing/code/license.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ According to `Wikipedia`_:
The License
-----------

Copyright (c) 2004-2015 Fabien Potencier
Copyright (c) 2004-2016 Fabien Potencier

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion cookbook/testing/doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ which makes all of this quite easy::
/**
* {@inheritDoc}
*/
public function setUp()
protected function setUp()
{
self::bootKernel();

Expand Down

0 comments on commit 9df83c0

Please sign in to comment.