Skip to content

Commit

Permalink
Add phpdocs to GacelaConfig::addExtendConfig()
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed May 8, 2023
1 parent 97da312 commit 69c0987
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/Framework/Bootstrap/GacelaConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 69c0987

Please sign in to comment.