diff --git a/src/CronardMiddleware.php b/src/CronardMiddleware.php index 0e535c7..46b32e7 100644 --- a/src/CronardMiddleware.php +++ b/src/CronardMiddleware.php @@ -24,7 +24,8 @@ class CronardMiddleware implements MiddlewareInterface public ? TaskFetcher $taskFetcher; - public function __construct(ContainerInterface $container, string $cronKey, $responseInterface, $variables = []) { + public function __construct(ContainerInterface $container, string $cronKey = "", $responseInterface = null, $variables = []) { + $this->cronKey = $cronKey; $this->response = $responseInterface; $this->variables = $variables;