for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Gacela\Framework\Bootstrap;
use Gacela\Framework\Config\GacelaConfigBuilder\AppConfigBuilder;
use Gacela\Framework\Config\GacelaConfigBuilder\BindingsBuilder;
use Gacela\Framework\Config\GacelaConfigBuilder\SuffixTypesBuilder;
abstract class AbstractSetupGacela implements SetupGacelaInterface
{
/**
* Define different config sources.
*/
public function buildAppConfig(AppConfigBuilder $builder): AppConfigBuilder
return $builder;
}
* Define the mapping between interfaces and concretions, so Gacela services will auto-resolve them automatically.
*
* @param array<string, class-string|object|callable> $externalServices
public function buildBindings(BindingsBuilder $builder, array $externalServices): BindingsBuilder
* Allow overriding gacela resolvable types.
public function buildSuffixTypes(SuffixTypesBuilder $builder): SuffixTypesBuilder
* @return array<string, class-string|object|callable>
public function externalServices(): array
return [];