public function getExpandedAclList(array $accessList) {
        $entries = [];

        foreach ($accessList as $publicKey => $privateKey) {
            if (is_array($privateKey)) {
                throw new InvalidArgumentException('A public key can only have a single private key (as of 2.0.0)');
            }

            $entries[] = [
                'publicKey'  => $publicKey,
                'privateKey' => $privateKey,
                'acl' => [[
                    'resources' => Resource::getReadWriteResources(),
                    'users' => [$publicKey]
                ]]
            ];
        }

        return $entries;
    }
public function getExpandedAclList(array $accessList) {
        $entries = [];

        foreach ($accessList as $publicKey => $privateKey) {
            if (is_array($privateKey)) {
                throw new InvalidArgumentException('A public key can only have a single private key (as of 2.0.0)');
            }

            $entries[] = [
                'publicKey'  => $publicKey,
                'privateKey' => $privateKey,
                'acl' => [[
                    'resources' => Resource::getReadWriteResources(),
                    'users' => [$publicKey]
                ]]
            ];
        }

        return $entries;
    }
public function getExpandedAclList ( array $ accessList ) { $ entries = [ ] ; foreach ( $ accessList as $ publicKey => $ privateKey ) { if ( is_array ( $ privateKey ) ) { throw new InvalidArgumentException ( 'A public key can only have a single private key (as of 2.0.0)' ) ; } $ entries [ ] = [ 'publicKey' => $ publicKey , 'privateKey' => $ privateKey , 'acl' => [ [ 'resources' => Resource :: getReadWriteResources ( ) , 'users' => [ $ publicKey ] ] ] ] ; } return $ entries ; }
Converts public => private key pairs into the array format accepted by ArrayAdapter

@param array $accessList
Converts public = > private key pairs into the array format accepted by ArrayAdapter