Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pmishev committed Jul 2, 2019
1 parent d9c7a78 commit 90fc760
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
6 changes: 0 additions & 6 deletions Exception/IndexOrAliasNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ class IndexOrAliasNotFoundException extends Exception
*/
private $indexOrAlias;

/**
* @var bool
*/
private $isAlias;

/**
* Constructor
*
Expand All @@ -30,7 +25,6 @@ class IndexOrAliasNotFoundException extends Exception
public function __construct(string $indexOrAlias, bool $isAlias = false, $code = 0, Throwable $previous = null)
{
$this->indexOrAlias = $indexOrAlias;
$this->isAlias = $isAlias;

parent::__construct(sprintf('%s "%s" does not exist', $isAlias ? 'Alias' : 'Index', $indexOrAlias), $code, $previous);
}
Expand Down
17 changes: 2 additions & 15 deletions Manager/IndexManagerRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,14 @@
use Sineflow\ElasticsearchBundle\Exception\InvalidIndexManagerException;
use Sineflow\ElasticsearchBundle\Mapping\DocumentMetadataCollector;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\ContainerAwareTrait;

/**
* Class to get defined index manager services
*/
class IndexManagerRegistry implements ContainerAwareInterface
{
/**
* @var ContainerInterface
*/
private $container;
use ContainerAwareTrait;

/**
* @var DocumentMetadataCollector
Expand All @@ -33,16 +30,6 @@ public function __construct(DocumentMetadataCollector $metadataCollector)
$this->metadataCollector = $metadataCollector;
}

/**
* Sets the Container.
*
* @param ContainerInterface|null $container A ContainerInterface instance or null
*/
public function setContainer(ContainerInterface $container = null)
{
$this->container = $container;
}

/**
* Returns the index manager service for a given index manager name
*
Expand Down

0 comments on commit 90fc760

Please sign in to comment.