CRM-20833: Change api4 entity namespace
authormickadoo <michaeldevery@gmail.com>
Sat, 8 Jul 2017 00:00:11 +0000 (01:00 +0100)
committermickadoo <michaeldevery@gmail.com>
Sat, 8 Jul 2017 00:08:25 +0000 (01:08 +0100)
Civi/API/Request.php

index d44f769a6b80b31346253dd1f46a3dc2b7681400..c60ceade9e6686e70a4386b4bb0ab05958d7cb71 100644 (file)
@@ -73,7 +73,7 @@ class Request {
         return $apiRequest;
 
       case 4:
-        $callable = array("Civi\\Api4\\$entity", $action);
+        $callable = array("Civi\\API\\V4\\Entity\\$entity", $action);
         if (!is_callable($callable)) {
           throw new Exception\NotImplementedException("API ($entity, $action) does not exist (join the API team and implement it!)");
         }