|
27 | 27 | use Gedmo\Mapping\Driver\AttributeReader;
|
28 | 28 | use Gedmo\Mapping\Event\AdapterInterface;
|
29 | 29 | use Gedmo\Mapping\Event\ClockAwareAdapterInterface;
|
30 |
| -use Gedmo\ReferenceIntegrity\Mapping\Validator as ReferenceIntegrityValidator; |
31 |
| -use Gedmo\Uploadable\FilenameGenerator\FilenameGeneratorInterface; |
32 |
| -use Gedmo\Uploadable\Mapping\Validator as MappingValidator; |
33 | 30 | use Psr\Cache\CacheItemPoolInterface;
|
34 | 31 | use Psr\Clock\ClockInterface;
|
35 | 32 | use Symfony\Component\Cache\Adapter\ArrayAdapter;
|
|
43 | 40 | * all extensions who maps additional metadata through
|
44 | 41 | * extended drivers
|
45 | 42 | *
|
| 43 | + * @phpstan-template TConfig of array |
| 44 | + * @phpstan-template TEventAdapter of AdapterInterface |
| 45 | + * |
46 | 46 | * @author Gediminas Morkevicius <[email protected]>
|
47 | 47 | */
|
48 | 48 | abstract class MappedEventSubscriber implements EventSubscriber
|
@@ -115,24 +115,7 @@ public function __construct()
|
115 | 115 | *
|
116 | 116 | * @return array<string, mixed>
|
117 | 117 | *
|
118 |
| - * @phpstan-return array{ |
119 |
| - * useObjectClass?: class-string, |
120 |
| - * referenceIntegrity?: array<string, array<string, value-of<ReferenceIntegrityValidator::INTEGRITY_ACTIONS>>>, |
121 |
| - * filePathField?: string, |
122 |
| - * uploadable?: bool, |
123 |
| - * fileNameField?: string, |
124 |
| - * allowOverwrite?: bool, |
125 |
| - * appendNumber?: bool, |
126 |
| - * maxSize?: float, |
127 |
| - * path?: string, |
128 |
| - * pathMethod?: string, |
129 |
| - * allowedTypes?: string[], |
130 |
| - * disallowedTypes?: string[], |
131 |
| - * filenameGenerator?: MappingValidator::FILENAME_GENERATOR_*|class-string<FilenameGeneratorInterface>, |
132 |
| - * fileMimeTypeField?: string, |
133 |
| - * fileSizeField?: string, |
134 |
| - * callback?: string, |
135 |
| - * } |
| 118 | + * @phpstan-return TConfig |
136 | 119 | */
|
137 | 120 | public function getConfiguration(ObjectManager $objectManager, $class)
|
138 | 121 | {
|
@@ -273,6 +256,8 @@ public function loadMetadataForObjectClass(ObjectManager $objectManager, $metada
|
273 | 256 | * @throws InvalidArgumentException if event is not recognized
|
274 | 257 | *
|
275 | 258 | * @return AdapterInterface
|
| 259 | + * |
| 260 | + * @phpstan-return TEventAdapter |
276 | 261 | */
|
277 | 262 | protected function getEventAdapter(EventArgs $args)
|
278 | 263 | {
|
|
0 commit comments