Skip to content

Commit 25460fa

Browse files
committed
Add note about need for doctrine/common
- Added a note about the need for doctrine/common when using form annotations. - Updated .gitignore to ignore vim swap and undo files
1 parent 0a61bb2 commit 25460fa

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ nbproject
55
.settings/
66
tmp/
77
.DS_Store
8-
composer.lock
8+
composer.lock
9+
.*.sw*
10+
.*.un~

docs/languages/en/modules/zend.form.quick-start.rst

+17
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,23 @@ To use annotations, you simply include them in your class and/or property docblo
917917
resolved according to the import statements in your class; as such, you can make them as long or as short as you
918918
want depending on what you import.
919919

920+
.. note::
921+
922+
Form annotations require ``Doctrine\\Common``, which contains an annotation
923+
parsering engine. The simplest way to install ``Doctrine\\Common`` is if you
924+
are using ``Composer``; simply update your ``composer.json`` and add the
925+
following line to the ``require`` section:
926+
927+
.. code-block:: javascript
928+
929+
"doctrine/common": ">=2.1",
930+
931+
Then run ``php composer.phar update`` to install the dependency.
932+
933+
If you're not using ``Composer``, visit `the Doctrine project website
934+
<http://www.doctrine-project.org/projects/common.html>`_ for more details on
935+
installation.
936+
920937
Here's a simple example.
921938

922939
.. code-block:: php

0 commit comments

Comments
 (0)