Skip to main content

Dependency analysis of lib/ at 70e557045555e68834e6f55f195211db3bd3b07e

5387 PHP files, 394863 lines of code, 16768 references between files (lib/Migration left out). Produced by tools/sig/analyse_dependencies.py.

Component views​

ViewComponentsLargestHidden codeCommunication linesViolation degree
directories under lib/38Service (54.4%)88.7%1940.0646
functional areas10Core (33.3%)64.5%810.194

4 files are not matched by the functional definition and were placed by directory majority (see results.json).

Layering​

Of 16039 references between layered files, 6401 go downward (39.9%), 9389 stay on the same level and 249 go upward (1.6%). 729 references touch the bootstrap or an unlayered directory.

Upward referenceCountExample
persistence -> service153lib/Db/AuditFlowAttribution.php -> lib/Service/Flow/FlowRunContextInterface.php
shared type -> persistence54lib/ContextChat/Support/ContentProviderSources.php -> lib/Db/MagicMapperInterface.php
service -> entry point23lib/Notifications/Service/Notification/NcNotificationSender.php -> lib/Notifications/BackgroundJob/WebPushDispatchJob.php
shared type -> service17lib/BulkAction/Support/ApplyRuleServices.php -> lib/Service/Calculation/CalculationEvaluatorInterface.php
persistence -> entry point1lib/Db/MagicMapper.php -> lib/BackgroundJob/JobHandles.php
shared type -> entry point1lib/Event/ObjectEventSubscription.php -> lib/Listener/ListenerClassesInterface.php

Cycles​

91 sets of files reference each other in a cycle, 434 files in all. The largest holds 190 files and 23989 lines (6.1% of lib/).

By directory: Db/MagicMapper 54, Service/Rbac 27, Event 16, Service/Object 14, BackgroundJob 12, Service/Lifecycle 11, Service 10, Db/Schema 10, Db 8, BackgroundJob/Support 6, Service/Schema 5, Service/Query 5, Service/Form 2, Service/Deferral 2, Service/Archival 1, Notifications/Service 1, Kernel/Contracts 1, Exception 1, Service/Deletion 1, Search/Service 1, Service/Audit 1, Service/Edepot 1

By area: Core 133, Kernel 20, Processes 19, Compliance 15, Platform 1, Notifications 1, Search 1

Files with the most references inside the set:

  • lib/Db/MagicMapper.php (50 references inside the set)
  • lib/Db/MagicMapper/MagicRbacHandler.php (16 references inside the set)
  • lib/Db/MagicMapperInterface.php (14 references inside the set)
  • lib/Db/MagicMapper/MagicSearchHandler.php (13 references inside the set)
  • lib/BackgroundJob/JobHandles.php (10 references inside the set)
  • lib/Service/Lifecycle/TransitionEngine.php (10 references inside the set)
  • lib/Service/Object/ObjectEventGate.php (9 references inside the set)
  • lib/Service/Schema/SchemaRevalidationService.php (7 references inside the set)
  • lib/Db/Schema.php (7 references inside the set)
  • lib/Service/Schema/SchemaMigrationService.php (6 references inside the set)

49 of the references inside the set go upward a layer; results.json lists them.

Functional areas​

AreaLinesExposedInternal refsOutgoing refsIncoming refs
Core13148539.9%302824021538
Processes7473945.1%24671223758
Integrations5010537.7%1199739493
Configuration4816516.2%9181570206
Compliance2931955.8%606469377
Notifications174456.5%439216114
Files158093.5%33919775
Search1370510.1%28519783
Kernel737492.0%1021123595
Platform671717.3%7019076

Area pairs that reference each other in both directions, heaviest lighter direction first:

PairReferencesLighter directionMost referenced in the lighter direction
Core / Processes250 / 234Processes -> CoreDb/TypedFieldsJsonTrait.php, Db/AuditTrailMapperInterface.php, Db/MagicMapperInterface.php
Core / Integrations189 / 313Core -> IntegrationsDb/AccessLink.php, Db/Source.php, Service/LinkTarget.php
Compliance / Core193 / 156Core -> ComplianceDb/AuditTrail.php, Service/AuthorizationAuditService.php, Service/Audit/PurposeGuardInterface.php
Configuration / Core534 / 108Core -> ConfigurationService/ConfigurationServiceInterface.php, Service/LanguageService.php, Service/Export/ExportGateInterface.php
Core / Kernel1575 / 80Kernel -> CoreEvent/AbstractObjectEntityEvent.php, Event/AbstractSchemaEvent.php, Event/AbstractPersonLinkEvent.php
Integrations / Processes53 / 77Integrations -> ProcessesService/CalendarEventService.php, Db/Flow.php, Db/FormLinkMapperInterface.php
Core / Files53 / 43Files -> CoreDb/EntityRelation.php, Db/AuditTrailMapperInterface.php, Service/Object/FileWriteGuardInterface.php
Core / Search40 / 61Core -> SearchSearch/Db/ViewMapperInterface.php, Search/Service/Aggregation/AggregationQuery.php, Search/Service/Search/PropertySearchProfile.php
Notifications / Processes21 / 41Notifications -> ProcessesDb/Task.php, Service/Interaction/WatcherServiceInterface.php, Service/Task/TaskInboxServiceInterface.php
Compliance / Configuration20 / 152Compliance -> ConfigurationService/Settings/ArchivalSettingsReaderInterface.php, Db/HydrateBySettersTrait.php, Service/Settings/FileSettingsHandler.php
Configuration / Processes380 / 19Processes -> ConfigurationDb/TaskSequence.php, Db/Translation.php, Command/Support/RematerialiseEvaluation.php
Core / Notifications19 / 23Core -> NotificationsNotifications/Service/TimelineVisibilityServiceInterface.php, Notifications/Service/Notification/NotificationClearingServiceInterface.php, Notifications/Service/Notification/NotificationDeclarationException.php
Configuration / Platform30 / 18Platform -> ConfigurationService/Configuration/DescriptorConfigIdsInterface.php, Db/Translation.php, Service/Configuration/ConfigurationServiceRegistrar.php
Configuration / Integrations147 / 16Integrations -> ConfigurationDb/Application.php, Db/HydrateBySettersTrait.php, Db/Configuration.php
Platform / Processes24 / 16Processes -> PlatformSettings/OpenRegisterAdmin.php, Service/TranslationProjectionServiceInterface.php, Db/TranslationMapperInterface.php