Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

Add note about need for doctrine/common #378

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -5,4 +5,6 @@ nbproject
.settings/ .settings/
tmp/ tmp/
.DS_Store .DS_Store
composer.lock composer.lock
.*.sw*
.*.un~
17 changes: 17 additions & 0 deletions docs/languages/en/modules/zend.form.quick-start.rst
Expand Up @@ -917,6 +917,23 @@ To use annotations, you simply include them in your class and/or property docblo
resolved according to the import statements in your class; as such, you can make them as long or as short as you resolved according to the import statements in your class; as such, you can make them as long or as short as you
want depending on what you import. want depending on what you import.


.. note::

Form annotations require ``Doctrine\\Common``, which contains an annotation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for double namespace separators here. (and on the next line.)

parsering engine. The simplest way to install ``Doctrine\\Common`` is if you
are using ``Composer``; simply update your ``composer.json`` and add the
following line to the ``require`` section:

.. code-block:: javascript

"doctrine/common": ">=2.1",

Then run ``php composer.phar update`` to install the dependency.

If you're not using ``Composer``, visit `the Doctrine project website
<http://www.doctrine-project.org/projects/common.html>`_ for more details on
installation.

Here's a simple example. Here's a simple example.


.. code-block:: php .. code-block:: php
Expand Down