-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PROD-29620: Replace all EDA Handlers with dummies if there is no Publ…
…isher
- Loading branch information
1 parent
cf6d3af
commit 40c7f2c
Showing
4 changed files
with
38 additions
and
6 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
modules/social_features/social_core/src/EdaDummyHandler.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Drupal\social_core; | ||
|
||
/** | ||
* A dummy handler that equals a no-op. | ||
* | ||
* This ensures people who do not use the EDA to publish events to an external | ||
* event bus don't have any performance penalty from loading or formatting data. | ||
*/ | ||
class EdaDummyHandler { | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function __call(string $name, array $arguments): void {} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters