Skip to content

Commit

Permalink
Merge branch '2.7' into 2.8
Browse files Browse the repository at this point in the history
Conflicts:
	components/config/definition.rst
  • Loading branch information
wouterj committed Jan 7, 2016
2 parents bd29146 + a48c537 commit 32eddf7
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 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 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();
$this->em = static::$kernel->getContainer()
Expand Down

0 comments on commit 32eddf7

Please sign in to comment.