Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpecScanner - Fix installation error ("Class XyzSpecProvider does not exist") #24874

Merged
merged 2 commits into from
Nov 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Civi/Api4/Service/LegacySpecScanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class LegacySpecScanner implements AutoServiceInterface {
public static function buildContainer(ContainerBuilder $container): void {
$classNames = static::findClasses('Civi\Api4\Service\Spec\Provider', $container);
foreach ($classNames as $className) {
if (!class_exists($className)) {
continue;
}
$class = new \ReflectionClass($className);
if ($class->implementsInterface(AutoServiceInterface::class)) {
// This is already handled by the main scanner.
Expand Down
1 change: 0 additions & 1 deletion ext/search_kit/search_kit.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
function search_kit_civicrm_config(&$config) {
_search_kit_civix_civicrm_config($config);
Civi::dispatcher()->addListener('hook_civicrm_alterAngular', ['\Civi\Search\AfformSearchMetadataInjector', 'preprocess'], 1000);
Civi::dispatcher()->addSubscriber(new Civi\Api4\Event\Subscriber\SearchKitSubscriber());
}

/**
Expand Down