1
+ Getting Started
2
+ ===============
3
+
1
4
Deprecation notice
2
- ==================
5
+ ------------------
3
6
4
7
PHP 8 introduced `attributes
5
8
<https://www.php.net/manual/en/language.attributes.overview.php> `_,
@@ -15,7 +18,7 @@ Have a look at `our blog <https://www.doctrine-project.org/2022/11/04/annotation
15
18
to learn more.
16
19
17
20
Introduction
18
- ============
21
+ ------------
19
22
20
23
Doctrine Annotations allows to implement custom annotation
21
24
functionality for PHP classes and functions.
@@ -39,7 +42,7 @@ class mapping, but it can be used in other projects for other purposes
39
42
too.
40
43
41
44
Installation
42
- ============
45
+ ------------
43
46
44
47
You can install the Annotation component with composer:
45
48
@@ -48,7 +51,7 @@ You can install the Annotation component with composer:
48
51
$ composer require doctrine/annotations
49
52
50
53
Create an annotation class
51
- ==========================
54
+ --------------------------
52
55
53
56
An annotation class is a representation of the later used annotation
54
57
configuration in classes. The annotation class of the previous example
@@ -69,7 +72,7 @@ The annotation class is declared as an annotation by ``@Annotation``.
69
72
:doc: `Read more about custom annotations. <custom >`
70
73
71
74
Reading annotations
72
- ===================
75
+ -------------------
73
76
74
77
The access to the annotations happens by reflection of the class or function
75
78
containing them. There are multiple reader-classes implementing the
@@ -98,7 +101,7 @@ function.
98
101
:doc: `Read more about handling annotations. <annotations >`
99
102
100
103
IDE Support
101
- -----------
104
+ ^^^^^^^^^^^
102
105
103
106
Some IDEs already provide support for annotations:
104
107
0 commit comments