Skip to content

Commit b0294b6

Browse files
committed
Merge symfony/master into beberlei/master
2 parents d345d00 + 7b5b05c commit b0294b6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+6358
-2182
lines changed

contributing/code/bugs.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
Reporting a Bug
22
===============
33

4-
Whenever you find a bug in Symfony, we kindly ask you to report it. It helps
5-
us make a better Symfony.
4+
Whenever you find a bug in Symfony2, we kindly ask you to report it. It helps
5+
us make a better Symfony2.
66

77
.. caution::
8-
If you think you've found a security issue, please use the special
9-
doc:`procedure <security>` instead.
8+
9+
If you think you've found a security issue, please use the special
10+
:doc:`procedure <security>` instead.
1011

1112
Before submitting a bug:
1213

1314
* Double-check the official `documentation`_ to see if you're not misusing the
1415
framework;
1516

16-
* Ask assistance on the `users mailing-list`_, the `forum`, or on the
17+
* Ask assistance on the `users mailing-list`_, the `forum`_, or on the
1718
#symfony `IRC channel`_ if you're not sure if your issue is really a bug.
1819

1920
If your problem definitely looks like a bug, report it using the official bug

contributing/code/conventions.rst

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
Conventions
2+
===========
3+
4+
The :doc:`standards` document describes the coding standards for the Symfony2
5+
projects and the internal and third-party bundles. This document describes
6+
coding standards and conventions used in the core framework to make it more
7+
consistent and predictable. You can follow them in your own code, but you
8+
don't need to.
9+
10+
Method Names
11+
------------
12+
13+
When an object has a "main" many relation with related "things"
14+
(objects, parameters, ...), the method names are normalized:
15+
16+
* ``get()``
17+
* ``set()``
18+
* ``has()``
19+
* ``all()``
20+
* ``replace()``
21+
* ``remove()``
22+
* ``clear()``
23+
* ``isEmpty()``
24+
* ``add()``
25+
* ``register()``
26+
* ``count()``
27+
* ``keys()``
28+
29+
The usage of these methods are only allowed when it is clear that there
30+
is a main relation:
31+
32+
* a ``CookieJar`` has many ``Cookie``s;
33+
34+
* a Service ``Container`` has many services and many parameters (as services
35+
is the main relation, we use the naming convention for this relation);
36+
37+
* a Console ``Input`` has many arguments and many options. There is no "main"
38+
relation, and so the naming convention does not apply.
39+
40+
For many relations where the convention does not apply, the following methods
41+
must be used instead (where ``XXX`` is the name of the related thing):
42+
43+
============== =================
44+
Main Relation Other Relations
45+
============== =================
46+
``get()`` ``getXXX()``
47+
``set()`` ``setXXX()``
48+
``has()`` ``hasXXX()``
49+
``all()`` ``getXXXs()``
50+
``replace()`` ``setXXXs()``
51+
``remove()`` ``removeXXX()``
52+
``clear()`` ``clearXXX()``
53+
``isEmpty()`` ``isEmptyXXX()``
54+
``add()`` ``addXXX()``
55+
``register()`` ``registerXXX()``
56+
``count()`` ``countXXX()``
57+
``keys()`` n/a
58+
============== =================

contributing/code/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Contributing Code
77
bugs
88
patches
99
security
10-
standards
1110
tests
11+
standards
12+
conventions
1213
license

contributing/code/license.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ Symfony2 is released under the MIT license.
55

66
According to `Wikipedia`_:
77

8-
"It is a permissive license, meaning that it permits reuse within
9-
proprietary software on the condition that the license is distributed with
10-
that software. The license is also GPL-compatible, meaning that the GPL
11-
permits combination and redistribution with software that uses the MIT
12-
License."
8+
"It is a permissive license, meaning that it permits reuse within
9+
proprietary software on the condition that the license is distributed with
10+
that software. The license is also GPL-compatible, meaning that the GPL
11+
permits combination and redistribution with software that uses the MIT
12+
License."
1313

1414
The License
1515
-----------

contributing/code/patches.rst

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Submitting a Patch
22
==================
33

44
Patches are the best way to provide a bug fix or to propose enhancements to
5-
Symfony.
5+
Symfony2.
66

77
Initial Setup
88
-------------
@@ -24,8 +24,9 @@ Set up your user information with your real name and a working email address:
2424
$ git config --global user.email you@example.com
2525
2626
.. tip::
27-
If you are new to Git, we highly recommend you to read the excellent and free
28-
`ProGit`_ book.
27+
28+
If you are new to Git, we highly recommend you to read the excellent and
29+
free `ProGit`_ book.
2930

3031
Get the Symfony2 code source:
3132

@@ -61,11 +62,12 @@ topic branch:
6162
$ git checkout -b BRANCH_NAME
6263
6364
.. tip::
64-
Use a descriptive name for your branch (`ticket_XXX` where `XXX` is the ticket
65-
number is a good convention for bug fixes).
65+
66+
Use a descriptive name for your branch (`ticket_XXX` where `XXX` is the
67+
ticket number is a good convention for bug fixes).
6668

6769
The above command automatically switches the code to the newly created branch
68-
(check the branch you are working on with `git branch`.)
70+
(check the branch you are working on with `git branch`).
6971

7072
Work on the code as much as you want and commit as much as you want; but keep
7173
in mind the following:
@@ -82,11 +84,13 @@ in mind the following:
8284
* Write good commit messages.
8385

8486
.. tip::
85-
A good commit message is composed of a summary (the first line), optionally
86-
followed by a blank line and a more detailed description. The summary should
87-
start with the Component you are working on in square brackets
88-
(`[DependencyInjection]`, `[FrameworkBundle]`, ...). Use a verb (`fixed ...`,
89-
`added ...`, ...) to start the summary and don't add a period at the end.
87+
88+
A good commit message is composed of a summary (the first line), optionally
89+
followed by a blank line and a more detailed description. The summary
90+
should start with the Component you are working on in square brackets
91+
(`[DependencyInjection]`, `[FrameworkBundle]`, ...). Use a verb
92+
(`fixed ...`, `added ...`, ...) to start the summary and don't add a period
93+
at the end.
9094

9195
Submitting a Patch
9296
------------------

contributing/code/security.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Reporting a Security Issue
22
==========================
33

4-
Found a security issue in Symfony? Don't use the mailing-list or the bug
4+
Found a security issue in Symfony2? Don't use the mailing-list or the bug
55
tracker. All security issues must be sent to **security [at]
66
symfony-project.com** instead. Emails sent to this address are forwarded to
77
the Symfony core-team private mailing-list.
@@ -17,4 +17,5 @@ confirmed, the core-team works on a solution following these steps:
1717
5. Publish the post on the official Symfony blog.
1818

1919
.. note::
20-
While we are working on a patch, please do not reveal the issue publicly.
20+
21+
While we are working on a patch, please do not reveal the issue publicly.

contributing/code/standards.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Coding Standards
22
================
33

4-
When contributing code to Symfony, you must follow its coding standards. To
4+
When contributing code to Symfony2, you must follow its coding standards. To
55
make a long story short, here is the golden rule: *Imitate the existing
6-
Symfony code*.
6+
Symfony2 code*.
77

88
Structure
99
---------

contributing/code/tests.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ The test suite need the following third-party libraries:
2828

2929
* Doctrine
3030
* Doctrine Migrations
31-
* Phing
32-
* Propel
3331
* Swiftmailer
3432
* Twig
3533
* Zend Framework
@@ -41,7 +39,8 @@ To install them all, run the `install_vendors.sh` script:
4139
$ sh install_vendors.sh
4240
4341
.. note::
44-
Note that the script takes some time to finish.
42+
43+
Note that the script takes some time to finish.
4544

4645
After installation, you can update the vendors anytime with the
4746
`update_vendors.sh` script:
@@ -66,8 +65,9 @@ The output should display `OK`. If not, you need to figure out what's going on
6665
and if the tests are broken because of your modifications.
6766

6867
.. tip::
69-
Run the test suite before applying your modifications to check that they run
70-
fine on your configuration.
68+
69+
Run the test suite before applying your modifications to check that they
70+
run fine on your configuration.
7171

7272
Code Coverage
7373
-------------
@@ -83,7 +83,8 @@ Check the code coverage by opening the generated `cov/index.html` page in a
8383
browser.
8484

8585
.. tip::
86-
The code coverage only works if you have XDebug enabled and all dependencies
87-
installed.
86+
87+
The code coverage only works if you have XDebug enabled and all
88+
dependencies installed.
8889

8990
.. _install: http://www.phpunit.de/manual/current/en/installation.html

contributing/community/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Contributing Code
2+
=================
3+
4+
.. toctree::
5+
:maxdepth: 2
6+
7+
irc
8+
other

contributing/community/irc.rst

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
IRC Meetings
2+
============
3+
4+
The purpose of this meeting is to discuss topics in real time with many of the
5+
Symfony2 devs.
6+
7+
Anyone may propose topics on the `symfony-dev`_ mailing-list until 24 hours
8+
before the meeting, ideally including well prepared relevant information via
9+
some URL. 24 hours before the meeting a link to a `doodle`_ will be posted
10+
including a list of all proposed topics. Anyone can vote on the topics until
11+
the beginning of the meeting to define the order in the agenda. Each topic
12+
will be timeboxed to 15mins and the meeting lasts one hour, leaving enough
13+
time for at least 4 topics.
14+
15+
.. caution::
16+
17+
Note that its not the expected goal of them meeting to find final
18+
solutions, but more to ensure that there is a common understanding of the
19+
issue at hand and move the discussion forward in ways which are hard to
20+
achieve with less real time communication tools.
21+
22+
Meetings will happen each Thursday at 17:00 CET (+01:00) on the #symfony-dev
23+
channel on the Freenode IRC server.
24+
25+
The IRC `logs`_ will later be published on the trac wiki, which will include a
26+
short summary for each of the topics. Tickets will be created for any tasks or
27+
issues identified during the meeting and referenced in the summary.
28+
29+
Some simple guidelines and pointers for participation:
30+
31+
* It's possible to change votes until the beginning of the meeting by clicking
32+
on "Edit an entry";
33+
* The doodle will be closed for voting at the beginning of the meeting;
34+
* Agenda is defined by which topics got the most votes in the doodle, or
35+
whichever was proposed first in case of a tie;
36+
* At the beginning of the meeting one person will identify him/herself as the
37+
moderator;
38+
* The moderator is essentially responsible for ensuring the 15min timebox and
39+
ensuring that tasks are clearly identified;
40+
* Usually the moderator will also handle writing the summary and creating trac
41+
tickets unless someone else steps up;
42+
* Anyone can join and is explicitly invited to participate;
43+
* Ideally one should familiarize oneself with the proposed topic before the
44+
meeting;
45+
* When starting on a new topic the proposer is invited to start things off
46+
with a few words;
47+
* Anyone can then comment as they see fit;
48+
* Depending on how many people participate one should potentially retrain
49+
oneself from pushing a specific argument too hard;
50+
* Remember the IRC `logs`_ will be published later on, so people have the
51+
chance to review comments later on once more;
52+
* People are encouraged to raise their hand to take on tasks defined during
53+
the meeting.
54+
55+
Here is an `example`_ doodle.
56+
57+
.. _symfony-dev: http://groups.google.com/group/symfony-devs
58+
.. _doodle: http://doodle.com
59+
.. _logs: http://trac.symfony-project.org/wiki/Symfony2IRCMeetingLogs
60+
.. _example: http://doodle.com/4cnzme7xys3ay53w

contributing/community/other.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Other Resources
2+
===============
3+
4+
In order to follow what is happening in the community you might find helpful
5+
these additional resources:
6+
7+
* List of open `pull requests`_
8+
* List of recent `commits`_
9+
* List of open `bugs`_
10+
* List of open source `bundles`_
11+
12+
.. _pull requests: https://github.com/fabpot/symfony/pulls
13+
.. _commits: https://github.com/fabpot/symfony/commits/master
14+
.. _bugs: http://trac.symfony-project.org/report/24
15+
.. _bundles: http://symfony2bundles.org/

contributing/documentation/format.rst

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ reStructuredText
88
----------------
99

1010
reStructuredText "is an easy-to-read, what-you-see-is-what-you-get plaintext
11-
markup syntax and parser system."
11+
markup syntax and parser system".
1212

1313
You can learn more about its syntax by reading existing Symfony2 `documents`_
1414
or by reading the `reStructuredText Primer`_ on the Sphinx website.
@@ -49,7 +49,8 @@ the highlighted pseudo-language:
4949
<?php echo $this->foobar(); ?>
5050
5151
.. note::
52-
A list of supported languages is available on the `Pygments website`_.
52+
53+
A list of supported languages is available on the `Pygments website`_.
5354

5455
Configuration Blocks
5556
~~~~~~~~~~~~~~~~~~~~
@@ -72,7 +73,7 @@ directive to show the configuration in all supported configuration formats
7273
7374
.. code-block:: php
7475
75-
// Configuration in XML
76+
// Configuration in PHP
7677
7778
The previous reST snippet renders as follow:
7879

@@ -88,7 +89,25 @@ The previous reST snippet renders as follow:
8889
8990
.. code-block:: php
9091
91-
// Configuration in XML
92+
// Configuration in PHP
93+
94+
The current list of supported formats are the following:
95+
96+
=============== ===========
97+
Markup format Displayed
98+
=============== ===========
99+
html HTML
100+
xml XML
101+
php PHP
102+
yaml YAML
103+
jinja Twig
104+
html+jinja Twig
105+
jinja+html Twig
106+
php+html PHP
107+
html+php PHP
108+
ini INI
109+
php-annotations Annotations
110+
=============== ===========
92111

93112
.. _reStructuredText: http://docutils.sf.net/rst.html
94113
.. _Sphinx: http://sphinx.pocoo.org/

contributing/documentation/license.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ Attribution-Share Alike 3.0 Unported `License`_.
2929
domain under applicable law, that status is in no way affected by the
3030
license;
3131

32-
* *Other Rights* — In no way are any of the following rights affected by the license:
32+
* *Other Rights* — In no way are any of the following rights affected by the
33+
license:
3334

3435
* Your fair dealing or fair use rights, or other applicable copyright
3536
exceptions and limitations;

contributing/documentation/overview.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ If you want to submit a patch, clone the official documentation repository:
2525
$ git clone git://github.com/symfony/symfony-docs.git
2626
2727
.. note::
28-
The Symfony2 documentation is licensed under a Creative Commons
29-
Attribution-Share Alike 3.0 Unported :doc:`License <license>`.
28+
29+
The Symfony2 documentation is licensed under a Creative Commons
30+
Attribution-Share Alike 3.0 Unported :doc:`License <license>`.
3031

3132
Reporting an Issue
3233
------------------

0 commit comments

Comments
 (0)