Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 7cc7261

Browse files
committed
Parameter naming for class parameters
1 parent 91e6244 commit 7cc7261

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

contributing/bundles.rst

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ Interface Naming
4141
~~~~~~~~~~~~~~~~
4242

4343
Interfaces which exist to provide *getters* MUST be suffixed with
44-
"ReadInterface"
44+
"ReadInterface".
4545

4646
Interfaces which exist to provide *setters* MUST be suffixed with
47-
"WriteInterface"
47+
"WriteInterface".
4848

49-
"Read/Write" Interfaces, which provide *both* getters and setters, MUST not
49+
"Read/Write" Interfaces, which provide **both** getters and setters, MUST not
5050
have an additional suffix and MUST extend the "Read" and "Write" interfaces IF
5151
either exists.
5252

@@ -76,6 +76,15 @@ If either or both "Read" and "Write" interfaces do not exist, then the
7676
public function setFoobar($foobar);
7777
}
7878

79+
Dependency Container Configuration
80+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
81+
82+
Parameters representing class names MUST be of the form
83+
``cmf_bundlename.foo.bar.class``, example:
84+
85+
.. code-block:: xml
86+
87+
<parameter key="cmf_menu.persistence.phpcr.menu_document.class">Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\Menu</parameter>
7988
8089
Meta: README, CHANGELOG, etc
8190
----------------------------

0 commit comments

Comments
 (0)