You're passing a string containing Ccit\EmployeesBundle\Search\EmpPosDeptProvider
. You have to pass an instance of EmpPosDeptProvider
, and it may be declared in your services.yml
something like:
services:
fos_elastica.type:
class: %fos_elastica.type.class%
employees.search_provider.empPosDept:
class: Ccit\EmployeesBundle\Search\EmpPosDeptProvider
tags:
- { name: fos_elastica.provider, index: employees, type: empPosDept }
arguments:
- @fos_elastica.type
- @doctrine.orm.entity_manager