Skip to content
Snippets Groups Projects
Select Git revision
  • 6bfd231357a4f76fba79be99089685e145047a09
  • main default protected
2 results

PersonFromUserItemSubscriber.php

Blame
  • AuthorizationDataProviderInterface.php 668 B
    <?php
    
    declare(strict_types=1);
    
    namespace Dbp\Relay\CoreBundle\Authorization;
    
    interface AuthorizationDataProviderInterface
    {
        /**
         * Returns a list of available attributes.
         *
         * @return string[]
         */
        public function getAvailableAttributes(): array;
    
        /**
         * Returns an array of attribute names and values.
         * In case an attribute has no value then it isn't contained.
         *
         * In case $userIdentifier is null then there is no active user and
         * only globally available attributes shold be returned.
         *
         * @return array<string, mixed>
         */
        public function getUserAttributes(?string $userIdentifier): array;
    }