Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Support for Symfony Events #85

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Support for Symfony Events #85

wants to merge 6 commits into from

Conversation

c0ntax
Copy link

@c0ntax c0ntax commented Sep 19, 2018

Hi there. I've added a some simple events to the bundle so that people can trigger other actions from locking and unlocking the site.

Use case: Currently, when I take a site off-line, all external monitoring goes red and people start shouting at me about the site being down. So I want to be able to disable external systems on successfully locking the site and then enable them once the site is back.

Currently, the events are pretty rudimentary, but could be extended to contain extra information if required in the future.

Hope you find this useful and accept the pull. ;-)

… as the translator.master

NOTE: Also made lock and unlock `final` so that its not possible for people to extend the locking and unlocking process and break event from being thrown
@c0ntax
Copy link
Author

c0ntax commented Sep 19, 2018

Hmm... I'm pretty sure those failed tests are not something I've done (they appear to fail on other pull requests too) but I'm happy to fix if I'm wrong about that. ;-)

…a little 'out of scope' for the changes in this pull request, so I've shut up the warning for now.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant