Ga naar hoofdinhoud

Dependency analysis of lib/ at 29890847e796e459279d06b6ce571a63ef0c4289

7482 PHP files, 458606 lines of code, 23450 references between files (lib/Migration left out). Produced by tools/sig/analyse_dependencies.py.

Component views​

ViewComponentsLargestHidden codeCommunication linesViolation degree
directories under lib/39Service (55.3%)85.2%2260.0554
functional areas10Core (33.8%)62.5%850.1936

Layering​

Of 22285 references between layered files, 8433 go downward (37.8%), 13550 stay on the same level and 302 go upward (1.4%). 1165 references touch the bootstrap or an unlayered directory.

Upward referenceCountExample
persistence -> service203lib/Db/AuditFlowAttribution.php -> lib/Service/Flow/FlowRunContextInterface.php
shared type -> persistence52lib/ContextChat/Support/ContentProviderSources.php -> lib/Db/MagicMapperInterface.php
service -> entry point27lib/Notifications/Service/Notification/NcNotificationSender.php -> lib/Notifications/BackgroundJob/WebPushDispatchJob.php
shared type -> service17lib/Contacts/Support/ContactsMenuSources.php -> lib/Service/DeepLinkResolverInterface.php
shared type -> entry point2lib/Event/AppWebhookEvents.php -> lib/Listener/WebhookEventListener.php
persistence -> entry point1lib/Db/MagicMapper.php -> lib/BackgroundJob/JobHandles.php

Cycles​

122 sets of files reference each other in a cycle, 685 files in all. The largest holds 280 files and 30625 lines (6.7% of lib/).

By directory: Db/MagicMapper 74, Service/Rbac 34, Service/Object 23, Service 21, Event 16, Service/Lifecycle 16, BackgroundJob 15, Db 13, Db/Schema 10, Service/Schema 9, BackgroundJob/Support 7, Kernel/Contracts 7, Service/Query 6, Service/Schemas 6, Service/JsonLd 4, Service/Form 3, Service/Deferral 2, Db/SchemaMapper 2, Service/Relation 2, Service/Deletion 2, Service/Edepot 1, Service/Audit 1, Search/Service 1, ContextChat/Listener 1, Service/Archival 1, Db/AuditTrail 1, Notifications/Service 1, Exception 1

By area: Core 198, Processes 28, Kernel 26, Compliance 18, Integrations 4, Search 2, Configuration 2, Platform 1, Notifications 1

Files with the most references inside the set:

  • lib/Db/MagicMapper.php (67 references inside the set)
  • lib/Db/MagicMapper/MagicSearchHandler.php (28 references inside the set)
  • lib/Db/MagicMapper/MagicRbacHandler.php (21 references inside the set)
  • lib/Db/MagicMapperInterface.php (14 references inside the set)
  • lib/Service/Lifecycle/TransitionEngine.php (13 references inside the set)
  • lib/BackgroundJob/JobHandles.php (12 references inside the set)
  • lib/Service/Schema/SchemaMigrationService.php (11 references inside the set)
  • lib/Db/MagicMapper/MagicFacetHandler.php (11 references inside the set)
  • lib/Service/Schema/SchemaRevalidationService.php (9 references inside the set)
  • lib/Service/Object/ObjectEventGate.php (9 references inside the set)

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

Functional areas​

AreaLinesExposedInternal refsOutgoing refsIncoming refs
Core15493943.4%451031602041
Processes8485845.4%34541646895
Configuration5669718.8%14011848292
Integrations5590136.2%15761102614
Compliance3494051.0%940745512
Notifications198558.7%637315154
Files1873220.0%451296101
Search1511315.1%353266174
Kernel905989.2%2521144702
Platform851217.8%120264271

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

PairReferencesLighter directionMost referenced in the lighter direction
Core / Processes317 / 319Core -> ProcessesService/PropertyAccessRequest.php, BulkAction/BulkActionInterface.php, Service/PropertyRbacHandler.php
Compliance / Core280 / 244Core -> ComplianceDb/AuditTrail.php, Db/AuditTrail/ObjectAuditEvent.php, Db/AuditTrail/NamedActor.php
Core / Integrations236 / 435Core -> IntegrationsDb/Source.php, Db/FederatedShare.php, Db/AccessLink.php
Configuration / Core630 / 143Core -> ConfigurationService/SchemaProperty.php, Db/Configuration.php, Service/LanguageService.php
Core / Search92 / 92Core -> SearchDb/RegisterSchema.php, Search/Db/ViewMapperInterface.php, Search/Service/Aggregation/AggregationQuery.php
Integrations / Processes82 / 113Integrations -> ProcessesDb/Flow.php, Db/FormLinkMapperInterface.php, Service/Flow/FlowServiceInterface.php
Core / Kernel1984 / 80Kernel -> CoreEvent/AbstractObjectEntityEvent.php, Event/AbstractSchemaEvent.php, Event/AbstractPersonLinkEvent.php
Core / Files60 / 93Core -> FilesService/FileHandlerSupportInterface.php, Files/Db/FileMapperInterface.php, Files/Db/EntityRelationMapperInterface.php
Core / Platform57 / 82Core -> PlatformAppInfo/Application.php, Service/ActionRightsCatalogueInterface.php, Db/TranslationMapperInterface.php
Integrations / Platform37 / 42Integrations -> PlatformAppInfo/Application.php, Service/Resilience/BreakerRegistry.php, Db/TranslationSourceLanguageBackfillInterface.php
Compliance / Configuration32 / 160Compliance -> ConfigurationService/Settings/ArchivalSettingsReaderInterface.php, Db/NewRowStamps.php, Service/Export/SpreadsheetCell.php
Configuration / Processes387 / 31Processes -> ConfigurationDb/TaskSequence.php, Service/SequenceScope.php, Db/Translation.php
Notifications / Processes31 / 58Notifications -> ProcessesDb/Task.php, Service/Interaction/WatcherServiceInterface.php, Service/Task/TaskInboxServiceInterface.php
Platform / Processes28 / 53Platform -> ProcessesDb/FlowMapperInterface.php, Db/Flow.php, Db/TaskMapper.php
Core / Notifications27 / 30Core -> NotificationsNotifications/Service/TimelineVisibilityServiceInterface.php, Notifications/Db/WatcherMapperInterface.php, Notifications/Service/Notification/NotificationDeclarationException.php