How esupportail/mybookings-services works
MyBookings Services is a Symfony API and service container that bridges MyBookings to LDAP, email, and access-control systems. The main user workflow is an authenticated HTTP request to user endpoints, which delegates lookup or search to user/group services and returns directory data. Separate API branches expose actuator operations and health checks; CLI commands configure providers and test their connectivity. The graph follows shown calls and README-documented capabilities; some configuration and framework wiring is not shown in the excerpts, so those links are omitted.
Main entry points: TestServicesCommand.php Connectivity Tests · Ldap.php LDAP Adapter · ActuatorService.php Actuator Operations · UserService.php User Lookup
Components 21
HTTP API
- HTTP Runtime
public/index.php - Symfony Kernel
src/Kernel.php - Token Authenticator
src/Security/ApiAuthenticator.php - API User
src/Security/ApiUser.php - User Endpoints
src/Controller/UserController.php - Actuator Endpoints
src/Controller/ActuatorController.php - Health Endpoint
src/Controller/HealthController.php - Mail Endpoint
src/Controller/MailerController.php
Identity Services
- User Lookup
src/Service/UserService.php - Provider Search
src/Service/GroupService.php
External Integrations
- LDAP Adapter
src/Service/Ldap.php - Mail Sender
src/Service/Mail.php - Actuator Operations
src/Service/ActuatorService.php
Operations
- Provider Configuration
src/Command/ConfigureServicesCommand.php - Connectivity Tests
src/Command/TestServicesCommand.php - Provider YAML
config/examples
Other components
- API Client
- LDAP Directory
- SMTP Service
- Access Control
- CLI Operator
Connections 22
- API Client → HTTP Runtime: sends requests
README.md - HTTP Runtime → Symfony Kernel: boots
public/index.php - API Client → Token Authenticator: sends token
README.md - Token Authenticator → API User: creates user
src/Security/ApiAuthenticator.php - User Endpoints → User Lookup: delegates lookup
src/Controller/UserController.php - User Endpoints → Provider Search: delegates provider search
src/Controller/UserController.php - User Lookup → LDAP Adapter: queries directory
src/Service/UserService.php - Provider Search → LDAP Adapter: queries provider
src/Service/GroupService.php - LDAP Adapter → LDAP Directory: queries
README.md - Mail Endpoint → Mail Sender: sends email
src/Controller/MailerController.php - Mail Sender → SMTP Service: sends message
src/Service/Mail.php - Actuator Endpoints → Actuator Operations: executes operation
src/Controller/ActuatorController.php - Actuator Operations → Access Control: reads endpoint
src/Service/ActuatorService.php - Health Endpoint → Actuator Operations: checks actuators
src/Controller/HealthController.php - Health Endpoint → LDAP Adapter: checks providers
src/Controller/HealthController.php - CLI Operator → Provider Configuration: runs command
README.md - Provider Configuration → Provider YAML: generates YAML
README.md - CLI Operator → Connectivity Tests: runs command
src/Command/TestServicesCommand.php - Connectivity Tests → LDAP Adapter: tests connection
src/Command/TestServicesCommand.php - Connectivity Tests → Mail Sender: tests sending
src/Command/TestServicesCommand.php - Connectivity Tests → Actuator Operations: tests reads
src/Command/TestServicesCommand.php - Connectivity Tests → User Lookup: tests search
src/Command/TestServicesCommand.php