Closed antedebaas closed 7 months ago
Please update the documentation before merge.
Also, I think there should be some logic behind this "flag". Please add checking if connection is enabled in methods getMailbox
, testConnection
and tryTestConnection
and add the column "enabled" in the ValidateConnectionsCommand
.
there you go. renamed it to enabled so the column matches the config
@secit-pl friendly ping
Changes looks ok. One thought before merge, shouldn't there go some logic behind the isEnabled()? At this moment the flag doesn't do anything. Maybe we should block possibility to get the mailbox (getMailbox() -> if (!$connection->isEnabled()) throw \ErrorException('connection disabled')) and do not initiate connection on the test command for disabled connections? WDYT?
I agree; Originally I had the idea of using the flag on my project side. But for this it makes more sense to add logic to it here so I added code for it. i also modified the validate-connection command not to try and open the mailbox when its disabled
Merged. Thank you for your contribution!
I need a flag to check if a config is enabled.