[FEATURE] Add methods to get class tag values via reflection
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Feature-60822-AddMethodsToGetClassTagValuesViaReflection.rst
1 =================================================================
2 Feature: #60822 - Class annotations in extbase reflection service
3 =================================================================
4
5 Description
6 ===========
7
8 The extbase reflection service can now return tags/annotations added to a class.
9
10 Suppose the given class:
11
12 ::
13
14 /**
15 * @SomeClassAnnotation A value
16 */
17 class Foo {
18 }
19
20 ..
21
22 Those annotation can be fetched with the reflection service:
23
24 ::
25
26 $service = new \TYPO3\CMS\Extbase\Reflection\ReflectionService();
27 $classValues = $service->getClassTagsValues('Foo');
28 $classValue = $service->getClassTagValue('Foo', 'SomeClassAnnotation');
29
30 ..
31
32 Impact
33 ======
34
35 Getting class tags by ReflectionService is now possible.