X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FAPI%2FProvider%2FReflectionProvider.php;h=676458faea696201e9196db6ec19609ea24dd0c1;hb=707d14a9d26591ae4f0fbc8342445ad31796972e;hp=addaa3145dddb793301ee3846b3fed2d289be2ab;hpb=8906b92a00b4907e620e80624fb6ac6baa368bed;p=civicrm-core.git diff --git a/Civi/API/Provider/ReflectionProvider.php b/Civi/API/Provider/ReflectionProvider.php index addaa3145d..676458faea 100644 --- a/Civi/API/Provider/ReflectionProvider.php +++ b/Civi/API/Provider/ReflectionProvider.php @@ -33,6 +33,9 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; * This class defines operations for inspecting the API's metadata. */ class ReflectionProvider implements EventSubscriberInterface, ProviderInterface { + /** + * @return array + */ public static function getSubscribedEvents() { return array( Events::RESOLVE => array( @@ -65,6 +68,9 @@ class ReflectionProvider implements EventSubscriberInterface, ProviderInterface ); } + /** + * @param \Civi\API\Event\ResolveEvent $event + */ public function onApiResolve(\Civi\API\Event\ResolveEvent $event) { $apiRequest = $event->getApiRequest(); $actions = isset($this->actions[$apiRequest['entity']]) ? $this->actions[$apiRequest['entity']] : $this->actions['*']; @@ -76,6 +82,9 @@ class ReflectionProvider implements EventSubscriberInterface, ProviderInterface } } + /** + * @param \Civi\API\Event\AuthorizeEvent $event + */ public function onApiAuthorize(\Civi\API\Event\AuthorizeEvent $event) { $apiRequest = $event->getApiRequest(); if (isset($apiRequest['is_metadata'])) { @@ -118,4 +127,4 @@ class ReflectionProvider implements EventSubscriberInterface, ProviderInterface function getActionNames($version, $entity) { return isset($this->actions[$entity]) ? $this->actions[$entity] : $this->actions['*']; } -} \ No newline at end of file +}