From 69c09871e0fc2a2b8a6d5a1a80362d8390184e2f Mon Sep 17 00:00:00 2001 From: Chemaclass Date: Mon, 8 May 2023 14:44:39 +0200 Subject: [PATCH] Add phpdocs to GacelaConfig::addExtendConfig() --- src/Framework/Bootstrap/GacelaConfig.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/Framework/Bootstrap/GacelaConfig.php b/src/Framework/Bootstrap/GacelaConfig.php index 1ef2ba24..20361113 100644 --- a/src/Framework/Bootstrap/GacelaConfig.php +++ b/src/Framework/Bootstrap/GacelaConfig.php @@ -294,11 +294,18 @@ public function extendService(string $id, Closure $service): self } /** - * @param class-string $config + * Add a new invokable class that can extend the GacelaConfig object. + * + * This configClass will receive the GacelaConfig object as argument to the __invoke() method. + * ``` + * __invoke(GacelaConfig $config): void + * ``` + * + * @param class-string $configClass */ - public function addExtendConfig(string $config): self + public function addExtendConfig(string $configClass): self { - $this->extendConfig[] = $config; + $this->extendConfig[] = $configClass; return $this; }