Skip to content
This repository

Add note about need for doctrine/common #378

Merged
merged 1 commit into from over 1 year ago

3 participants

Matthew Weier O'Phinney Robert Basic Dolf Schimmel
Matthew Weier O'Phinney
  • Added a note about the need for doctrine/common when using form annotations.
  • Updated .gitignore to ignore vim swap and undo files
Matthew Weier O'Phinney 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
25460fa
Robert Basic robertbasic commented on the diff October 09, 2012
docs/languages/en/modules/zend.form.quick-start.rst
@@ -917,6 +917,23 @@ To use annotations, you simply include them in your class and/or property docblo
917 917
 resolved according to the import statements in your class; as such, you can make them as long or as short as you
918 918
 want depending on what you import.
919 919
 
  920
+.. note::
  921
+
  922
+    Form annotations require ``Doctrine\\Common``, which contains an annotation
1

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Dolf Schimmel Freeaqingme merged commit 25460fa into from October 13, 2012
Dolf Schimmel Freeaqingme closed this October 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Oct 09, 2012
Matthew Weier O'Phinney 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
25460fa
This page is out of date. Refresh to see the latest.
4  .gitignore
@@ -5,4 +5,6 @@ nbproject
5 5
 .settings/
6 6
 tmp/
7 7
 .DS_Store
8  
-composer.lock
  8
+composer.lock
  9
+.*.sw*
  10
+.*.un~
17  docs/languages/en/modules/zend.form.quick-start.rst
Source Rendered
@@ -917,6 +917,23 @@ To use annotations, you simply include them in your class and/or property docblo
917 917
 resolved according to the import statements in your class; as such, you can make them as long or as short as you
918 918
 want depending on what you import.
919 919
 
  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
+
920 937
 Here's a simple example.
921 938
 
922 939
 .. code-block:: php
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.