One Hat Cyber Team
Your IP:
216.73.216.30
Server IP:
198.54.114.155
Server:
Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
5.6.40
Create File
|
Create Folder
Execute
Dir :
~
/
proc
/
self
/
root
/
proc
/
thread-self
/
cwd
/
Edit File:
Contracts.tar
Providers/Auth.php 0000644 00000001312 15110661433 0010130 0 ustar 00 <?php /* * This file is part of jwt-auth. * * (c) Sean Tymon <tymon148@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tymon\JWTAuth\Contracts\Providers; interface Auth { /** * Check a user's credentials. * * @param array $credentials * @return mixed */ public function byCredentials(array $credentials); /** * Authenticate a user via the id. * * @param mixed $id * @return mixed */ public function byId($id); /** * Get the currently authenticated user. * * @return mixed */ public function user(); } Providers/JWT.php 0000644 00000000766 15110661433 0007707 0 ustar 00 <?php /* * This file is part of jwt-auth. * * (c) Sean Tymon <tymon148@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tymon\JWTAuth\Contracts\Providers; interface JWT { /** * @param array $payload * @return string */ public function encode(array $payload); /** * @param string $token * @return array */ public function decode($token); } Providers/Storage.php 0000644 00000001534 15110661433 0010641 0 ustar 00 <?php /* * This file is part of jwt-auth. * * (c) Sean Tymon <tymon148@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tymon\JWTAuth\Contracts\Providers; interface Storage { /** * @param string $key * @param mixed $value * @param int $minutes * @return void */ public function add($key, $value, $minutes); /** * @param string $key * @param mixed $value * @return void */ public function forever($key, $value); /** * @param string $key * @return mixed */ public function get($key); /** * @param string $key * @return bool */ public function destroy($key); /** * @return void */ public function flush(); } JWTSubject.php 0000644 00000001152 15110661433 0007240 0 ustar 00 <?php /* * This file is part of jwt-auth. * * (c) Sean Tymon <tymon148@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tymon\JWTAuth\Contracts; interface JWTSubject { /** * Get the identifier that will be stored in the subject claim of the JWT. * * @return mixed */ public function getJWTIdentifier(); /** * Return a key value array, containing any custom claims to be added to the JWT. * * @return array */ public function getJWTCustomClaims(); } Validator.php 0000644 00000001107 15110661433 0007201 0 ustar 00 <?php /* * This file is part of jwt-auth. * * (c) Sean Tymon <tymon148@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tymon\JWTAuth\Contracts; interface Validator { /** * Perform some checks on the value. * * @param mixed $value * @return void */ public function check($value); /** * Helper function to return a boolean. * * @param array $value * @return bool */ public function isValid($value); } Claim.php 0000644 00000001762 15110661433 0006310 0 ustar 00 <?php /* * This file is part of jwt-auth. * * (c) Sean Tymon <tymon148@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tymon\JWTAuth\Contracts; interface Claim { /** * Set the claim value, and call a validate method. * * @param mixed $value * @return $this * * @throws \Tymon\JWTAuth\Exceptions\InvalidClaimException */ public function setValue($value); /** * Get the claim value. * * @return mixed */ public function getValue(); /** * Set the claim name. * * @param string $name * @return $this */ public function setName($name); /** * Get the claim name. * * @return string */ public function getName(); /** * Validate the Claim value. * * @param mixed $value * @return bool */ public function validateCreate($value); } Http/Parser.php 0000644 00000000744 15110661433 0007435 0 ustar 00 <?php /* * This file is part of jwt-auth. * * (c) Sean Tymon <tymon148@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tymon\JWTAuth\Contracts\Http; use Illuminate\Http\Request; interface Parser { /** * Parse the request. * * @param \Illuminate\Http\Request $request * @return null|string */ public function parse(Request $request); } BaseSolution.php 0000644 00000002556 15110734562 0007700 0 ustar 00 <?php namespace Spatie\Ignition\Contracts; class BaseSolution implements Solution { protected string $title; protected string $description = ''; /** @var array<string, string> */ protected array $links = []; public static function create(string $title = ''): static { // It's important to keep the return type as static because // the old Facade Ignition contracts extend from this method. /** @phpstan-ignore-next-line */ return new static($title); } public function __construct(string $title = '') { $this->title = $title; } public function getSolutionTitle(): string { return $this->title; } public function setSolutionTitle(string $title): self { $this->title = $title; return $this; } public function getSolutionDescription(): string { return $this->description; } public function setSolutionDescription(string $description): self { $this->description = $description; return $this; } /** @return array<string, string> */ public function getDocumentationLinks(): array { return $this->links; } /** @param array<string, string> $links */ public function setDocumentationLinks(array $links): self { $this->links = $links; return $this; } } Solution.php 0000644 00000000411 15110734562 0007071 0 ustar 00 <?php namespace Spatie\Ignition\Contracts; interface Solution { public function getSolutionTitle(): string; public function getSolutionDescription(): string; /** @return array<string, string> */ public function getDocumentationLinks(): array; } RunnableSolution.php 0000644 00000000615 15110734562 0010566 0 ustar 00 <?php namespace Spatie\Ignition\Contracts; interface RunnableSolution extends Solution { public function getSolutionActionDescription(): string; public function getRunButtonText(): string; /** @param array<string, mixed> $parameters */ public function run(array $parameters = []): void; /** @return array<string, mixed> */ public function getRunParameters(): array; } SolutionProviderRepository.php 0000644 00000001602 15110734562 0012707 0 ustar 00 <?php namespace Spatie\Ignition\Contracts; use Throwable; interface SolutionProviderRepository { /** * @param class-string<HasSolutionsForThrowable>|HasSolutionsForThrowable $solutionProvider * * @return $this */ public function registerSolutionProvider(string $solutionProvider): self; /** * @param array<class-string<HasSolutionsForThrowable>|HasSolutionsForThrowable> $solutionProviders * * @return $this */ public function registerSolutionProviders(array $solutionProviders): self; /** * @param Throwable $throwable * * @return array<int, Solution> */ public function getSolutionsForThrowable(Throwable $throwable): array; /** * @param class-string<Solution> $solutionClass * * @return null|Solution */ public function getSolutionForClass(string $solutionClass): ?Solution; } ConfigManager.php 0000644 00000000516 15110734562 0007763 0 ustar 00 <?php namespace Spatie\Ignition\Contracts; interface ConfigManager { /** @return array<string, mixed> */ public function load(): array; /** @param array<string, mixed> $options */ public function save(array $options): bool; /** @return array<string, mixed> */ public function getPersistentInfo(): array; } ProvidesSolution.php 0000644 00000000310 15110734562 0010603 0 ustar 00 <?php namespace Spatie\Ignition\Contracts; /** * Interface to be used on exceptions that provide their own solution. */ interface ProvidesSolution { public function getSolution(): Solution; } HasSolutionsForThrowable.php 0000644 00000000522 15110734562 0012232 0 ustar 00 <?php namespace Spatie\Ignition\Contracts; use Throwable; /** * Interface used for SolutionProviders. */ interface HasSolutionsForThrowable { public function canSolve(Throwable $throwable): bool; /** @return array<int, \Spatie\Ignition\Contracts\Solution> */ public function getSolutions(Throwable $throwable): array; } HasApiTokens.php 0000644 00000002141 15111154652 0007605 0 ustar 00 <?php namespace Laravel\Sanctum\Contracts; interface HasApiTokens { /** * Get the access tokens that belong to model. * * @return \Illuminate\Database\Eloquent\Relations\MorphMany */ public function tokens(); /** * Determine if the current API token has a given scope. * * @param string $ability * @return bool */ public function tokenCan(string $ability); /** * Create a new personal access token for the user. * * @param string $name * @param array $abilities * @return \Laravel\Sanctum\NewAccessToken */ public function createToken(string $name, array $abilities = ['*']); /** * Get the access token currently associated with the user. * * @return \Laravel\Sanctum\Contracts\HasAbilities */ public function currentAccessToken(); /** * Set the current access token for the user. * * @param \Laravel\Sanctum\Contracts\HasAbilities $accessToken * @return \Laravel\Sanctum\Contracts\HasApiTokens */ public function withAccessToken($accessToken); } HasAbilities.php 0000644 00000000623 15111154652 0007620 0 ustar 00 <?php namespace Laravel\Sanctum\Contracts; interface HasAbilities { /** * Determine if the token has a given ability. * * @param string $ability * @return bool */ public function can($ability); /** * Determine if the token is missing a given ability. * * @param string $ability * @return bool */ public function cant($ability); }
Simpan