Skip to content

Commit 4fb5315

Browse files
authored
Add in theoretical priority.
1 parent 220c5ab commit 4fb5315

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/EventSubscriber/ConfigTransformationEventSubscriber.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
*/
1818
class ConfigTransformationEventSubscriber implements EventSubscriberInterface, ContainerInjectionInterface {
1919

20+
const PRIORITY = 250;
21+
2022
/**
2123
* Constructor.
2224
*/
@@ -40,8 +42,8 @@ public static function create(ContainerInterface $container) {
4042
*/
4143
public static function getSubscribedEvents() : array {
4244
return [
43-
ConfigEvents::STORAGE_TRANSFORM_EXPORT => 'onExportTransform',
44-
ConfigEvents::STORAGE_TRANSFORM_IMPORT => 'onImportTransform',
45+
ConfigEvents::STORAGE_TRANSFORM_EXPORT => [['onExportTransform', static::PRIORITY]],
46+
ConfigEvents::STORAGE_TRANSFORM_IMPORT => [['onImportTransform', -static::PRIORITY]],
4547
];
4648
}
4749

0 commit comments

Comments
 (0)