for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Ray\AuraSqlModule\Pagerfanta;
use Override;
use Pagerfanta\View\DefaultView;
use Pagerfanta\View\Template\DefaultTemplate;
use Pagerfanta\View\Template\TemplateInterface;
use Pagerfanta\View\ViewInterface;
use Ray\AuraSqlModule\Annotation\PagerViewOption;
use Ray\Di\AbstractModule;
final class AuraSqlPagerModule extends AbstractModule
{
/**
* {@inheritDoc}
*/
#[Override]
protected function configure(): void
$this->bind(ViewInterface::class)->to(DefaultView::class);
$this->bind(TemplateInterface::class)->to(DefaultTemplate::class);
$this->bind(AuraSqlPagerInterface::class)->to(AuraSqlPager::class);
$this->bind(AuraSqlPagerFactoryInterface::class)->to(AuraSqlPagerFactory::class);
$this->bind(AuraSqlQueryPagerFactoryInterface::class)->to(AuraSqlQueryPagerFactory::class);
$this->bind(AuraSqlQueryPagerInterface::class)->to(AuraSqlQueryPager::class);
$this->bind('')->annotatedWith(PagerViewOption::class)->toInstance([]);
}