Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-8394: Used new RepositoryConfigurationProviderInterface contract #74

Merged
merged 2 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions src/bundle/ApiLoader/BoostFactorProviderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Ibexa\Bundle\Solr\ApiLoader;

use Ibexa\Bundle\Core\ApiLoader\RepositoryConfigurationProvider;
use Ibexa\Contracts\Core\Container\ApiLoader\RepositoryConfigurationProviderInterface;
use Ibexa\Solr\FieldMapper\BoostFactorProvider;
use LogicException;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
Expand All @@ -20,10 +20,7 @@ class BoostFactorProviderFactory implements ContainerAwareInterface
{
use ContainerAwareTrait;

/**
* @var \Ibexa\Bundle\Core\ApiLoader\RepositoryConfigurationProvider
*/
private $repositoryConfigurationProvider;
private RepositoryConfigurationProviderInterface $repositoryConfigurationProvider;

/**
* @var string
Expand All @@ -40,7 +37,7 @@ class BoostFactorProviderFactory implements ContainerAwareInterface
* @param string $boostFactorProviderClass
*/
public function __construct(
RepositoryConfigurationProvider $repositoryConfigurationProvider,
RepositoryConfigurationProviderInterface $repositoryConfigurationProvider,
$defaultConnection,
$boostFactorProviderClass
) {
Expand Down
9 changes: 3 additions & 6 deletions src/bundle/ApiLoader/IndexingDepthProviderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Ibexa\Bundle\Solr\ApiLoader;

use Ibexa\Bundle\Core\ApiLoader\RepositoryConfigurationProvider;
use Ibexa\Contracts\Core\Container\ApiLoader\RepositoryConfigurationProviderInterface;
use Ibexa\Solr\FieldMapper\IndexingDepthProvider;
use LogicException;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
Expand All @@ -18,10 +18,7 @@ class IndexingDepthProviderFactory implements ContainerAwareInterface
{
use ContainerAwareTrait;

/**
* @var \Ibexa\Bundle\Core\ApiLoader\RepositoryConfigurationProvider
*/
private $repositoryConfigurationProvider;
private RepositoryConfigurationProviderInterface $repositoryConfigurationProvider;

/**
* @var string
Expand All @@ -34,7 +31,7 @@ class IndexingDepthProviderFactory implements ContainerAwareInterface
private $indexingDepthProviderClass;

public function __construct(
RepositoryConfigurationProvider $repositoryConfigurationProvider,
RepositoryConfigurationProviderInterface $repositoryConfigurationProvider,
string $defaultConnection,
string $indexingDepthProviderClass
) {
Expand Down
7 changes: 3 additions & 4 deletions src/bundle/ApiLoader/SolrEngineFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Ibexa\Bundle\Solr\ApiLoader;

use Ibexa\Bundle\Core\ApiLoader\RepositoryConfigurationProvider;
use Ibexa\Contracts\Core\Container\ApiLoader\RepositoryConfigurationProviderInterface;
use Ibexa\Contracts\Core\Persistence\Content\Handler;
use Ibexa\Contracts\Solr\DocumentMapper;
use Ibexa\Solr\CoreFilter\CoreFilterRegistry;
Expand All @@ -16,8 +16,7 @@

class SolrEngineFactory
{
/** @var \Ibexa\Bundle\Core\ApiLoader\RepositoryConfigurationProvider */
private $repositoryConfigurationProvider;
private RepositoryConfigurationProviderInterface $repositoryConfigurationProvider;

/** @var string */
private $defaultConnection;
Expand All @@ -44,7 +43,7 @@ class SolrEngineFactory
private $locationResultExtractor;

public function __construct(
RepositoryConfigurationProvider $repositoryConfigurationProvider,
RepositoryConfigurationProviderInterface $repositoryConfigurationProvider,
$defaultConnection,
$searchEngineClass,
GatewayRegistry $gatewayRegistry,
Expand Down
Loading