Issues (41)

src/AuraSqlQueryModule.php (4 issues)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\AuraSqlModule;
6
7
use Aura\SqlQuery\Common\DeleteInterface;
8
use Aura\SqlQuery\Common\InsertInterface;
9
use Aura\SqlQuery\Common\SelectInterface;
10
use Aura\SqlQuery\Common\UpdateInterface;
11
use Override;
12
use Ray\AuraSqlModule\Annotation\AuraSqlQueryConfig;
13
use Ray\Di\AbstractModule;
14
15
final class AuraSqlQueryModule extends AbstractModule
16
{
17
    public function __construct(private readonly string $db, ?AbstractModule $module = null)
18
    {
19
        parent::__construct($module);
20
    }
21
22
    /**
23
     * {@inheritDoc}
24
     */
25
    #[Override]
26
    protected function configure(): void
27
    {
28
        $this->bind()->annotatedWith(AuraSqlQueryConfig::class)->toInstance($this->db);
29
        $this->bind(SelectInterface::class)->toProvider(AuraSqlQuerySelectProvider::class);
0 ignored issues
show
The type Ray\AuraSqlModule\AuraSqlQuerySelectProvider was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
30
        $this->bind(InsertInterface::class)->toProvider(AuraSqlQueryInsertProvider::class);
0 ignored issues
show
The type Ray\AuraSqlModule\AuraSqlQueryInsertProvider was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
31
        $this->bind(UpdateInterface::class)->toProvider(AuraSqlQueryUpdateProvider::class);
0 ignored issues
show
The type Ray\AuraSqlModule\AuraSqlQueryUpdateProvider was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
32
        $this->bind(DeleteInterface::class)->toProvider(AuraSqlQueryDeleteProvider::class);
0 ignored issues
show
The type Ray\AuraSqlModule\AuraSqlQueryDeleteProvider was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
33
    }
34
}
35