Download src/Option/Infrastructure/OptionModuleBootstrapper.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 852 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Option/Infrastructure/OptionModuleBootstrapper.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/Option/Infrastructure/OptionModuleBootstrapper.php
-
curl -L -o OptionModuleBootstrapper.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Option/Infrastructure/OptionModuleBootstrapper.php
852 Bytes
| declare(strict_types=1); | |
| namespace Option\Infrastructure; | |
| use Application; | |
| use Easy\Container\Container; | |
| use Option\Domain\Repositories\OptionRepositoryInterface; | |
| use Option\Infrastructure\Repositories\DoctrineOrm\OptionRepository; | |
| use Override; | |
| use Shared\Infrastructure\BootstrapperInterface; | |
| class OptionModuleBootstrapper implements BootstrapperInterface | |
| { | |
| public function __construct( | |
| private Application $app, | |
| private Container $container, | |
| private OptionResolver $resolver | |
| ) { | |
| } | |
| public function bootstrap(): void | |
| { | |
| // Register resolver | |
| $this->container->pushResolver($this->resolver); | |
| // Register repository implementations | |
| $this->app->set( | |
| OptionRepositoryInterface::class, | |
| OptionRepository::class | |
| ); | |
| } | |
| } | |