allow to load person interactively

- return results as json in PersonSearch
- update PickPersonType to load peoples with ChoiceLoader
This commit is contained in:
2018-08-27 13:16:54 +02:00
parent b4801734d3
commit f2ed32e458
5 changed files with 201 additions and 38 deletions

View File

@@ -32,6 +32,7 @@ use Symfony\Component\Security\Core\Role\Role;
use Chill\PersonBundle\Security\Authorization\PersonVoter;
use Chill\PersonBundle\Search\SimilarPersonMatcher;
use Symfony\Component\Translation\TranslatorInterface;
use Chill\MainBundle\Search\SearchProvider;
class PersonController extends Controller
{
@@ -46,7 +47,7 @@ class PersonController extends Controller
* @var TranslatorInterface
*/
protected $translator;
public function __construct(
SimilarPersonMatcher $similarPersonMatcher,
TranslatorInterface $translator