Skip to content
Snippets Groups Projects
Commit 3f5be9bc authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Add an exmaple for how to implement one of the core service interfaces

parent 1ea8d47d
Branches
Tags
No related merge requests found
Pipeline #13898 passed with warnings
<?php
namespace App;
use DBP\API\CoreBundle\Entity\Person;
use DBP\API\CoreBundle\Service\PersonProviderInterface;
class MyCustomPersonProvider implements PersonProviderInterface
{
public function getPersons(array $filters): array
{
// TODO: Implement getPersons() method.
}
public function getPersonsByNameAndBirthday(string $givenName, string $familyName, \DateTime $birthDay): array
{
// TODO: Implement getPersonsByNameAndBirthday() method.
}
public function getPerson(string $id, bool $full): Person
{
// TODO: Implement getPerson() method.
}
public function getCurrentPerson(): Person
{
// TODO: Implement getCurrentPerson() method.
}
public function getPersonForExternalService(string $service, string $serviceID): Person
{
// TODO: Implement getPersonForExternalService() method.
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment