OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
zzXpress
/
vendor
/
aws
/
aws-sdk-php
/
src
/
EndpointDiscovery
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
Configuration.php
1.12 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
ConfigurationInterface.php
610 bytes
05/19/2025 10:07:23 AM
rw-r--r--
📄
ConfigurationProvider.php
8.89 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
EndpointDiscoveryMiddleware.php
13.7 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
EndpointList.php
1.98 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
Exception
-
05/19/2025 10:07:23 AM
rwxr-xr-x
Editing: Configuration.php
Close
<?php namespace Aws\EndpointDiscovery; class Configuration implements ConfigurationInterface { private $cacheLimit; private $enabled; public function __construct($enabled, $cacheLimit = 1000) { $this->cacheLimit = filter_var($cacheLimit, FILTER_VALIDATE_INT); if ($this->cacheLimit == false || $this->cacheLimit < 1) { throw new \InvalidArgumentException( "'cache_limit' value must be a positive integer." ); } // Unparsable $enabled flag errs on the side of disabling endpoint discovery $this->enabled = filter_var($enabled, FILTER_VALIDATE_BOOLEAN); } /** * {@inheritdoc} */ public function isEnabled() { return $this->enabled; } /** * {@inheritdoc} */ public function getCacheLimit() { return $this->cacheLimit; } /** * {@inheritdoc} */ public function toArray() { return [ 'enabled' => $this->isEnabled(), 'cache_limit' => $this->getCacheLimit() ]; } }