Skip to content

Commit

Permalink
Bugfix SetupGacela using proper method from parent class
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed May 14, 2022
1 parent 826ded2 commit be53343
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

### 0.18.1
#### 2022-05-15

- Bugfix SetupGacela using proper method from parent class.

### 0.18.0
#### 2022-05-14

Expand Down
24 changes: 15 additions & 9 deletions src/Framework/Setup/SetupGacela.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,32 @@
final class SetupGacela extends BootstrapSetupGacela
{
/**
* @deprecated in favor of setConfigBuilder()
* @deprecated in favor of setConfigFn()
*
* @param callable(ConfigBuilder):void $callable
*/
public function setConfig(ConfigBuilder $builder): BootstrapSetupGacela
public function setConfig(callable $callable): BootstrapSetupGacela
{
return $this->setConfigBuilder($builder);
return $this->setConfigFn($callable);
}

/**
* @deprecated in favor of setMappingInterfacesBuilder()
* @deprecated in favor of setMappingInterfacesFn()
*
* @param callable(MappingInterfacesBuilder,array<string,mixed>):void $callable
*/
public function setMappingInterfaces(MappingInterfacesBuilder $builder): BootstrapSetupGacela
public function setMappingInterfaces(callable $callable): BootstrapSetupGacela
{
return $this->setMappingInterfacesBuilder($builder);
return $this->setMappingInterfacesFn($callable);
}

/**
* @deprecated in favor of setSuffixTypesBuilder()
* @deprecated in favor of setSuffixTypesFn()
*
* @param callable(SuffixTypesBuilder):void $callable
*/
public function setSuffixTypes(SuffixTypesBuilder $builder): BootstrapSetupGacela
public function setSuffixTypes(callable $callable): BootstrapSetupGacela
{
return $this->setSuffixTypesBuilder($builder);
return $this->setSuffixTypesFn($callable);
}
}

0 comments on commit be53343

Please sign in to comment.