Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : fdshops ( 1003)
PHP Version : 8.2.21
Disable Function : NONE
Directory :  /home/fdshops/public_html/vendor/knuckleswtf/scribe/src/Config/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/fdshops/public_html/vendor/knuckleswtf/scribe/src/Config/Extracting.php
<?php

namespace Knuckles\Scribe\Config;

class Extracting
{
    public function __construct(
        public Routes  $routes,
        public string  $defaultGroup = 'Endpoints',
        public array   $databaseConnectionsToTransact = [],
        public ?int    $fakerSeedForExamples = null,
        public array   $dataSourcesForExampleModels = ['factoryCreate', 'factoryMake', 'databaseFirst'],
        public ?string $routeMatcher = null,
        public ?string $fractalSerializer = null,
        public array   $auth = [],
        public array   $strategies = [],
    )
    {
    }

    public static function auth(
        bool   $enabled = true,
        bool   $default = false,
        string $in = 'bearer',
        string $name = 'key',
        string $useValue = null,
        string $placeholder = '{YOUR_AUTH_KEY}',
        string $extraInfo = ''
    ): array
    {
        return get_defined_vars();
    }

    public static function strategies(
        StrategyListWrapper $metadata,
        StrategyListWrapper $urlParameters,
        StrategyListWrapper $queryParameters,
        StrategyListWrapper $headers,
        StrategyListWrapper $bodyParameters,
        StrategyListWrapper $responses,
        StrategyListWrapper $responseFields,
    ): array
    {
        return array_map(fn($listWrapper) => $listWrapper->toArray(), get_defined_vars());
    }

    public static function with(
        Routes $routes,
        string $defaultGroup = 'Endpoints',
        array $databaseConnectionsToTransact = [],
        int $fakerSeedForExamples = null,
        array $dataSourcesForExampleModels = ['factoryCreate', 'factoryMake', 'databaseFirst'],
        string $routeMatcher = null,
        string $fractalSerializer = null,
        array   $auth = [],
        array   $strategies = [],
    ): Extracting
    {
        return new self(...get_defined_vars());
    }
}

Spamworldpro Mini