Skip to content

Commit

Permalink
Rename RunExtendConfig to GacelaConfigExtender
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Aug 13, 2023
1 parent 19e625d commit 15731e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

use function is_callable;

final class RunExtendConfig
final class GacelaConfigExtender
{
public function __invoke(GacelaConfig $gacelaConfig): void
public function extend(GacelaConfig $gacelaConfig): void
{
$configsToExtend = $gacelaConfig->build()['gacela-configs-to-extend'] ?? [];

Expand Down
4 changes: 2 additions & 2 deletions src/Framework/Bootstrap/SetupGacela.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Gacela\Framework\Bootstrap;

use Closure;
use Gacela\Framework\Bootstrap\Setup\RunExtendConfig;
use Gacela\Framework\Bootstrap\Setup\GacelaConfigExtender;
use Gacela\Framework\ClassResolver\Cache\GacelaFileCache;
use Gacela\Framework\Config\GacelaConfigBuilder\AppConfigBuilder;
use Gacela\Framework\Config\GacelaConfigBuilder\BindingsBuilder;
Expand Down Expand Up @@ -136,7 +136,7 @@ public static function fromCallable(callable $setupGacelaFileFn): self

public static function fromGacelaConfig(GacelaConfig $gacelaConfig): self
{
(new RunExtendConfig())->__invoke($gacelaConfig);
(new GacelaConfigExtender())->extend($gacelaConfig);

$build = $gacelaConfig->build();

Expand Down

0 comments on commit 15731e4

Please sign in to comment.