Remove ObjectManager typehints to ensure doctrine 2.0 compatibility
This commit is contained in:
parent
d7a8da6bf5
commit
f071c98143
|
@ -3,7 +3,6 @@
|
|||
namespace FOQ\ElasticaBundle\Provider;
|
||||
|
||||
use FOQ\ElasticaBundle\Transformer\ModelToElasticaTransformerInterface;
|
||||
use Doctrine\Common\Persistence\ObjectManager;
|
||||
use Elastica_Type;
|
||||
use Elastica_Document;
|
||||
use Closure;
|
||||
|
@ -21,7 +20,7 @@ class DoctrineProvider implements ProviderInterface
|
|||
'query_builder_method' => 'createQueryBuilder'
|
||||
);
|
||||
|
||||
public function __construct(Elastica_Type $type, ObjectManager $objectManager, ModelToElasticaTransformerInterface $transformer, $objectClass, array $options = array())
|
||||
public function __construct(Elastica_Type $type, $objectManager, ModelToElasticaTransformerInterface $transformer, $objectClass, array $options = array())
|
||||
{
|
||||
$this->type = $type;
|
||||
$this->objectManager = $objectManager;
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
namespace FOQ\ElasticaBundle\Transformer;
|
||||
|
||||
use Doctrine\Common\Persistence\ObjectManager;
|
||||
use Elastica_Document;
|
||||
|
||||
/**
|
||||
|
@ -14,8 +13,6 @@ class ElasticaToModelDoctrineTransformer implements ElasticaToModelTransformerIn
|
|||
{
|
||||
/**
|
||||
* Repository to fetch the objects from
|
||||
*
|
||||
* @var ObjectManager
|
||||
*/
|
||||
protected $objectManager = null;
|
||||
|
||||
|
@ -39,11 +36,11 @@ class ElasticaToModelDoctrineTransformer implements ElasticaToModelTransformerIn
|
|||
/**
|
||||
* Instanciates a new Mapper
|
||||
*
|
||||
* @param ObjectManager objectManager
|
||||
* @param object $objectManager
|
||||
* @param string $objectClass
|
||||
* @param array $options
|
||||
*/
|
||||
public function __construct(ObjectManager $objectManager, $objectClass, array $options = array())
|
||||
public function __construct($objectManager, $objectClass, array $options = array())
|
||||
{
|
||||
$this->objectManager = $objectManager;
|
||||
$this->objectClass = $objectClass;
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
namespace FOQ\ElasticaBundle\Transformer;
|
||||
|
||||
use Doctrine\Common\Persistence\ObjectManager;
|
||||
use Elastica_Document;
|
||||
use Traversable;
|
||||
use ArrayAccess;
|
||||
|
|
Loading…
Reference in a new issue