Skip to content

Commit

Permalink
Throw exception if schema is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwire committed Aug 14, 2020
1 parent a18f3f2 commit a253941
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Civi/Token/TokenProcessor.php
Expand Up @@ -135,6 +135,9 @@ public static function getEntityTableToSchemaMapping($entityTable) {
* @param array $context
*/
public function __construct($dispatcher, $context) {
if (!isset($context['schema'])) {
throw new \CRM_Core_Exception('Missing required parameter "schema" in TokenProcessor');
}
$this->dispatcher = $dispatcher;
$this->context = $context;
}
Expand Down

0 comments on commit a253941

Please sign in to comment.