| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace Ray\AuraSqlModule; |
||
| 6 | |||
| 7 | use Override; |
||
| 8 | use Ray\Di\AbstractModule; |
||
| 9 | |||
| 10 | final class AuraSqlEnvModule extends AbstractModule |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param string $dsn Env key for Data Source Name (DSN) |
||
| 14 | * @param string $username Env key for Username for the DSN string |
||
| 15 | * @param string $password Env key for Password for the DSN string |
||
| 16 | * @param string $slave Env key for Comma separated slave host list |
||
| 17 | * @param array<string,mixed> $options A key=>value array of driver-specific connection options |
||
| 18 | * @param array<string> $queries Queries to execute after the connection. |
||
| 19 | */ |
||
| 20 | public function __construct( |
||
| 21 | private readonly string $dsn, |
||
| 22 | private readonly string $username = '', |
||
| 23 | private readonly string $password = '', |
||
| 24 | private readonly string $slave = '', |
||
| 25 | /** @var array<string, mixed> */ |
||
| 26 | private readonly array $options = [], |
||
| 27 | /** @var array<string> */ |
||
| 28 | private readonly array $queries = [] |
||
| 29 | ) { |
||
| 30 | parent::__construct(); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritDoc} |
||
| 35 | */ |
||
| 36 | #[Override] |
||
| 37 | protected function configure(): void |
||
| 38 | { |
||
| 39 | $this->install(new NamedPdoEnvModule('', $this->dsn, $this->username, $this->password, $this->slave, $this->options, $this->queries)); |
||
|
0 ignored issues
–
show
|
|||
| 40 | $this->install(new AuraSqlBaseModule($this->dsn)); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths