__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace Tuf\Metadata;

use Symfony\Component\Validator\Constraints\All;
use Symfony\Component\Validator\Constraints\Collection;
use Symfony\Component\Validator\Constraints\Count;
use Symfony\Component\Validator\Constraints\Optional;
use Symfony\Component\Validator\Constraints\Required;
use Symfony\Component\Validator\Constraints\Type;

class SnapshotMetadata extends FileInfoMetadataBase
{

    /**
     * {@inheritdoc}
     */
    public const TYPE = 'snapshot';

    /**
     * {@inheritdoc}
     */
    protected static function getSignedCollectionOptions(): array
    {
        $options = parent::getSignedCollectionOptions();
        $options['fields']['meta'] = new Required([
            new Type('array'),
            new Count(['min' => 1]),
            new All([
                new Collection(
                    [
                        'fields' => static::getMetaPathConstraints(),
                        'allowExtraFields' => true,
                    ]
                ),
            ]),
        ]);
        return $options;
    }

    private static function getMetaPathConstraints(): array
    {
        $fields = static::getVersionConstraints();
        $fields['length'] = new Optional([
            new Type('integer'),
        ]);
        $fields += static::getHashesConstraints();
        $fields['hashes'] = new Optional($fields['hashes']);
        return $fields;
    }
}

Filemanager

Name Type Size Permission Actions
Verifier Folder 0775
ConstraintsTrait.php File 5.04 KB 0664
FileInfoMetadataBase.php File 794 B 0664
MetadataBase.php File 7.36 KB 0664
RootMetadata.php File 2.85 KB 0664
SnapshotMetadata.php File 1.38 KB 0664
StorageBase.php File 2.08 KB 0664
StorageInterface.php File 1.67 KB 0664
TargetsMetadata.php File 7.87 KB 0664
TimestampMetadata.php File 1.17 KB 0664
Filemanager