Skip to content

Commit

Permalink
IBX-8394: Used new RepositoryConfigurationProviderInterface contract (#…
Browse files Browse the repository at this point in the history
…74)

For more details see https://issues.ibexa.co/browse/IBX-8394 and #74

Key changes:

* [Rector] Used new RepositoryConfigurationProviderInterface contract

* Replaced `$repositoryConfigurationProvider` PHPDoc with strict type

---------

Co-Authored-By: Konrad Oboza <[email protected]>
  • Loading branch information
alongosz and konradoboza authored Jul 25, 2024
1 parent 3f556ba commit 02b4f19
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
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

0 comments on commit 02b4f19

Please sign in to comment.