From 3f5be9bcf14eb70b5c6bb723790afbc5f7dd29f6 Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Tue, 3 Nov 2020 09:50:27 +0100
Subject: [PATCH] Add an exmaple for how to implement one of the core service
 interfaces

---
 config/services.yaml           |  0
 src/MyCustomPersonProvider.php | 36 ++++++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)
 create mode 100644 config/services.yaml
 create mode 100644 src/MyCustomPersonProvider.php

diff --git a/config/services.yaml b/config/services.yaml
new file mode 100644
index 0000000..e69de29
diff --git a/src/MyCustomPersonProvider.php b/src/MyCustomPersonProvider.php
new file mode 100644
index 0000000..95acb46
--- /dev/null
+++ b/src/MyCustomPersonProvider.php
@@ -0,0 +1,36 @@
+<?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
-- 
GitLab