We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It's possible to know how to configure a global service to determine if the maintenance mode is enabled or not.
Because I don't found the way to do it.
Thanks in advance
The text was updated successfully, but these errors were encountered:
Hello @cwa-cc ,
You can do somthing like that :
<?php declare(strict_types=1); namespace MyNamespace; use Synolia\SyliusMaintenancePlugin\Factory\MaintenanceConfigurationFactory; final class MyClass { public function __construct( private MaintenanceConfigurationFactory $configurationFactory, ) { } private function isMaintenance(): bool { return $this->configurationFactory->get()->isEnabled(); } }
I hope it help you, Regards
Sorry, something went wrong.
No branches or pull requests
It's possible to know how to configure a global service to determine if the maintenance mode is enabled or not.
Because I don't found the way to do it.
Thanks in advance
The text was updated successfully, but these errors were encountered: