Issues (56)

src/Pagerfanta/AuraSqlPagerModule.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\AuraSqlModule\Pagerfanta;
6
7
use Override;
0 ignored issues
show
The type Override 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...
8
use Pagerfanta\View\DefaultView;
9
use Pagerfanta\View\Template\DefaultTemplate;
10
use Pagerfanta\View\Template\TemplateInterface;
11
use Pagerfanta\View\ViewInterface;
12
use Ray\AuraSqlModule\Annotation\PagerViewOption;
13
use Ray\Di\AbstractModule;
14
15
final class AuraSqlPagerModule extends AbstractModule
16
{
17
    /**
18
     * {@inheritDoc}
19
     */
20
    #[Override]
21
    protected function configure(): void
22
    {
23
        $this->bind(ViewInterface::class)->to(DefaultView::class);
24
        $this->bind(TemplateInterface::class)->to(DefaultTemplate::class);
25
        $this->bind(AuraSqlPagerInterface::class)->to(AuraSqlPager::class);
26
        $this->bind(AuraSqlPagerFactoryInterface::class)->to(AuraSqlPagerFactory::class);
27
        $this->bind(AuraSqlQueryPagerFactoryInterface::class)->to(AuraSqlQueryPagerFactory::class);
28
        $this->bind(AuraSqlQueryPagerInterface::class)->to(AuraSqlQueryPager::class);
29
        $this->bind('')->annotatedWith(PagerViewOption::class)->toInstance([]);
30
    }
31
}
32