From 94c581221110aa7f586e17ee4b878c0b174409d2 Mon Sep 17 00:00:00 2001 From: ADmad Date: Tue, 17 Sep 2024 18:22:02 +0530 Subject: [PATCH] disable unneeded plugin hooks --- src/CrudViewPlugin.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/CrudViewPlugin.php b/src/CrudViewPlugin.php index cc0e3cb..efd9363 100644 --- a/src/CrudViewPlugin.php +++ b/src/CrudViewPlugin.php @@ -16,6 +16,7 @@ class CrudViewPlugin extends BasePlugin * @var string|null */ protected ?string $name = 'CrudView'; + /** * Do bootstrapping or not * @@ -30,10 +31,31 @@ class CrudViewPlugin extends BasePlugin */ protected bool $consoleEnabled = false; + /** + * Enable middleware + * + * @var bool + */ + protected bool $middlewareEnabled = false; + + /** + * Register container services + * + * @var bool + */ + protected bool $servicesEnabled = false; + /** * Load routes or not * * @var bool */ protected bool $routesEnabled = false; + + /** + * Load events or not + * + * @var bool + */ + protected bool $eventsEnabled = false; }