Documentation

LegacyEntityScanner extends AutoSubscriber
in package

This provides transitional support for extensions that provide Api4 Entities without having the scan-classes mixin

It could share a findClasses function with LegacySpecGatherer, except that seems to do something with the container along the way

Tags
see
LegacySpecGatherer

Table of Contents

Methods

getEntitiesFromClasses()  : void
getSubscribedEvents()  : array<string|int, mixed>
findClasses()  : array<string|int, mixed>
Scan all enabled extensions for files in a certain namespace.

Methods

getSubscribedEvents()

public static getSubscribedEvents() : array<string|int, mixed>
Return values
array<string|int, mixed>

findClasses()

Scan all enabled extensions for files in a certain namespace.

protected static findClasses(string $namespace) : array<string|int, mixed>

Note: respects dispatch policy for hook_civicrm_scanClasses, for consistency

Parameters
$namespace : string
Return values
array<string|int, mixed>

        
On this page

Search results