OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
zzXpress
/
vendor
/
aws
/
aws-sdk-php
/
src
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:24 AM
rwxr-xr-x
📁
ACMPCA
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ARCZonalShift
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
AbstractConfigurationProvider.php
4.62 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
AccessAnalyzer
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Account
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Acm
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Amplify
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
AmplifyBackend
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
AmplifyUIBuilder
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Api
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ApiGateway
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ApiGatewayManagementApi
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ApiGatewayV2
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
AppConfig
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
AppConfigData
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
AppFabric
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
AppIntegrationsService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
AppMesh
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
AppRegistry
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
AppRunner
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
AppSync
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
AppTest
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Appflow
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ApplicationAutoScaling
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ApplicationCostProfiler
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ApplicationDiscoveryService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ApplicationInsights
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ApplicationSignals
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Appstream
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Arn
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Artifact
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Athena
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
AuditManager
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
AugmentedAIRuntime
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Auth
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
AutoScaling
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
AutoScalingPlans
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
AwsClient.php
27.86 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
AwsClientInterface.php
5.56 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
AwsClientTrait.php
2.77 KB
05/19/2025 10:07:22 AM
rw-r--r--
📁
B2bi
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
BCMDataExports
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📁
Backup
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
BackupGateway
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Batch
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Bedrock
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📁
BedrockAgent
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
BedrockAgentRuntime
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
BedrockRuntime
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📁
BillingConductor
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Braket
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Budgets
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
CacheInterface.php
789 bytes
05/19/2025 10:07:23 AM
rw-r--r--
📁
Chatbot
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Chime
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ChimeSDKIdentity
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ChimeSDKMediaPipelines
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ChimeSDKMeetings
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ChimeSDKMessaging
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ChimeSDKVoice
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CleanRooms
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CleanRoomsML
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
ClientResolver.php
56.41 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
ClientSideMonitoring
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📁
Cloud9
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CloudControlApi
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CloudDirectory
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CloudFormation
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CloudFront
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CloudFrontKeyValueStore
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CloudHSMV2
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CloudHsm
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CloudSearch
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CloudSearchDomain
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CloudTrail
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CloudTrailData
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📁
CloudWatch
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CloudWatchEvents
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CloudWatchEvidently
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CloudWatchLogs
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CloudWatchRUM
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📁
CodeArtifact
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CodeBuild
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CodeCatalyst
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CodeCommit
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CodeConnections
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CodeDeploy
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CodeGuruProfiler
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CodeGuruReviewer
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CodeGuruSecurity
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CodePipeline
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CodeStar
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CodeStarNotifications
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CodeStarconnections
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CognitoIdentity
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CognitoIdentityProvider
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CognitoSync
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
Command.php
3.07 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
CommandInterface.php
988 bytes
05/19/2025 10:07:23 AM
rw-r--r--
📄
CommandPool.php
5.38 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
Comprehend
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ComprehendMedical
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ComputeOptimizer
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ConfigService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Configuration
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
ConfigurationProviderInterface.php
259 bytes
05/19/2025 10:07:23 AM
rw-r--r--
📁
Connect
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ConnectCampaignService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ConnectCases
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ConnectContactLens
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ConnectParticipant
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ConnectWisdomService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ControlCatalog
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ControlTower
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CostExplorer
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CostOptimizationHub
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CostandUsageReportService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Credentials
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Crypto
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
CustomerProfiles
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
DAX
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
DLM
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
DataExchange
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
DataPipeline
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
DataSync
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
DataZone
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
DatabaseMigrationService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Deadline
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📁
DefaultsMode
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Detective
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
DevOpsGuru
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
DeviceFarm
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
DirectConnect
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
DirectoryService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
DocDB
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
DocDBElastic
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
DoctrineCacheAdapter.php
1.02 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
DynamoDb
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
DynamoDbStreams
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
EBS
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
EC2InstanceConnect
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ECRPublic
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📁
EKS
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
EKSAuth
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
EMRContainers
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
EMRServerless
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Ec2
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Ecr
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Ecs
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Efs
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ElastiCache
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ElasticBeanstalk
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ElasticInference
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ElasticLoadBalancing
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ElasticLoadBalancingV2
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ElasticTranscoder
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ElasticsearchService
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📁
Emr
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Endpoint
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
EndpointDiscovery
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
EndpointParameterMiddleware.php
2.82 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
EndpointV2
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
EntityResolution
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
EventBridge
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Exception
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
FIS
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
FMS
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
FSx
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
FinSpaceData
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Firehose
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ForecastQueryService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ForecastService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
FraudDetector
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
FreeTier
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
GameLift
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Glacier
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
GlobalAccelerator
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Glue
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
GlueDataBrew
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Greengrass
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
GreengrassV2
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
GroundStation
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
GuardDuty
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Handler
-
11/13/2024 02:17:27 PM
rwxr-xr-x
📄
HandlerList.php
13.69 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
HasDataTrait.php
1.54 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
HasMonitoringEventsTrait.php
908 bytes
05/19/2025 10:07:23 AM
rw-r--r--
📄
HashInterface.php
558 bytes
05/19/2025 10:07:23 AM
rw-r--r--
📄
HashingStream.php
1.61 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
Health
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
HealthLake
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
History.php
4.06 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
IVS
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
IVSRealTime
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Iam
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
IdempotencyTokenMiddleware.php
3.81 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
Identity
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
IdentityStore
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ImportExport
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
InputValidationMiddleware.php
2.51 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
Inspector
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Inspector2
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
InspectorScan
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
InternetMonitor
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
IoT1ClickDevicesService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
IoT1ClickProjects
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
IoTAnalytics
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
IoTDeviceAdvisor
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
IoTEvents
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
IoTEventsData
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
IoTFleetHub
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
IoTFleetWise
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📁
IoTJobsDataPlane
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📁
IoTSecureTunneling
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
IoTSiteWise
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
IoTThingsGraph
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📁
IoTTwinMaker
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
IoTWireless
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Iot
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
IotDataPlane
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
JsonCompiler.php
503 bytes
05/19/2025 10:07:23 AM
rw-r--r--
📁
Kafka
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
KafkaConnect
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
KendraRanking
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Keyspaces
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Kinesis
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
KinesisAnalytics
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
KinesisAnalyticsV2
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
KinesisVideo
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
KinesisVideoArchivedMedia
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
KinesisVideoMedia
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
KinesisVideoSignalingChannels
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
KinesisVideoWebRTCStorage
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Kms
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
LakeFormation
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Lambda
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
LaunchWizard
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
LexModelBuildingService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
LexModelsV2
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
LexRuntimeService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
LexRuntimeV2
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
LicenseManager
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
LicenseManagerLinuxSubscriptions
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
LicenseManagerUserSubscriptions
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Lightsail
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
LocationService
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📁
LookoutEquipment
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
LookoutMetrics
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
LookoutforVision
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
LruArrayCache.php
2.3 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
MQ
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MTurk
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MWAA
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MachineLearning
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Macie2
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MailManager
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MainframeModernization
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ManagedBlockchain
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ManagedBlockchainQuery
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ManagedGrafana
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MarketplaceAgreement
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MarketplaceCatalog
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MarketplaceCommerceAnalytics
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MarketplaceDeployment
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MarketplaceEntitlementService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MarketplaceMetering
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MediaConnect
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MediaConvert
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MediaLive
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MediaPackage
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MediaPackageV2
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MediaPackageVod
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MediaStore
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MediaStoreData
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MediaTailor
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MedicalImaging
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MemoryDB
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
Middleware.php
16.05 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
MigrationHub
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MigrationHubConfig
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MigrationHubOrchestrator
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MigrationHubRefactorSpaces
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
MigrationHubStrategyRecommendations
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
MockHandler.php
4.24 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
MonitoringEventsInterface.php
774 bytes
05/19/2025 10:07:23 AM
rw-r--r--
📄
MultiRegionClient.php
9.05 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
Multipart
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Neptune
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
NeptuneGraph
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Neptunedata
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
NetworkFirewall
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
NetworkManager
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
NetworkMonitor
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
NimbleStudio
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
OAM
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
OSIS
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Omics
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
OpenSearchServerless
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
OpenSearchService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
OpsWorks
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
OpsWorksCM
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Organizations
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Outposts
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
PI
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Panorama
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
PaymentCryptography
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
PaymentCryptographyData
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
PcaConnectorAd
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
PcaConnectorScep
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Personalize
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
PersonalizeEvents
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
PersonalizeRuntime
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
PhpHash.php
1.88 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
Pinpoint
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
PinpointEmail
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
PinpointSMSVoice
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
PinpointSMSVoiceV2
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Pipes
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Polly
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
PresignUrlMiddleware.php
4.66 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
Pricing
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
PrivateNetworks
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
PrometheusService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Proton
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
Psr16CacheAdapter.php
602 bytes
05/19/2025 10:07:23 AM
rw-r--r--
📄
PsrCacheAdapter.php
780 bytes
05/19/2025 10:07:23 AM
rw-r--r--
📁
QApps
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
QBusiness
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
QConnect
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
QLDB
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
QLDBSession
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
QueryCompatibleInputMiddleware.php
6.04 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
QuickSight
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
RAM
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
RDSDataService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Rds
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
RecycleBin
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Redshift
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
RedshiftDataAPIService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
RedshiftServerless
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Rekognition
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Repostspace
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
RequestCompressionMiddleware.php
4.97 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
ResilienceHub
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ResourceExplorer2
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ResourceGroups
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ResourceGroupsTaggingAPI
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
ResponseContainerInterface.php
260 bytes
05/19/2025 10:07:23 AM
rw-r--r--
📄
Result.php
1.2 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
ResultInterface.php
1.39 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
ResultPaginator.php
6.06 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
Retry
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
RetryMiddleware.php
8.74 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
RetryMiddlewareV2.php
12.04 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
RoboMaker
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📁
RolesAnywhere
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Route53
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Route53Domains
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Route53Profiles
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Route53RecoveryCluster
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Route53RecoveryControlConfig
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Route53RecoveryReadiness
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Route53Resolver
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
S3
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
S3Control
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
S3Outposts
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SSMContacts
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SSMIncidents
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SSO
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SSOAdmin
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SSOOIDC
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SageMaker
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SageMakerFeatureStoreRuntime
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SageMakerGeospatial
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SageMakerMetrics
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SageMakerRuntime
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SagemakerEdgeManager
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SavingsPlans
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Scheduler
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Schemas
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Script
-
11/13/2024 02:23:07 PM
rwxr-xr-x
📄
Sdk.php
67.46 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
SecretsManager
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SecurityHub
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SecurityLake
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ServerlessApplicationRepository
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ServiceCatalog
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ServiceDiscovery
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ServiceQuotas
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Ses
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SesV2
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Sfn
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Shield
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Signature
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SimSpaceWeaver
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Sms
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SnowBall
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SnowDeviceManagement
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Sns
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📁
Sqs
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Ssm
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SsmSap
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
StorageGateway
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
StreamRequestPayloadMiddleware.php
2.65 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
Sts
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SupplyChain
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Support
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
SupportApp
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Swf
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Synthetics
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
TaxSettings
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Textract
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
TimestreamInfluxDB
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
TimestreamQuery
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
TimestreamWrite
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Tnb
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Token
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
TraceMiddleware.php
12.71 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
TranscribeService
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Transfer
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Translate
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
TrustedAdvisor
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📁
VPCLattice
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
VerifiedPermissions
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
VoiceID
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
WAFV2
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Waf
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
WafRegional
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
Waiter.php
8.68 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
WellArchitected
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
WorkDocs
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
WorkLink
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
WorkMail
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
WorkMailMessageFlow
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
WorkSpaces
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
WorkSpacesThinClient
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
WorkSpacesWeb
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📄
WrappedHttpHandler.php
7.2 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
XRay
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
data
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
drs
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
finspace
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
functions.php
15.8 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
imagebuilder
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
ivschat
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
kendra
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
mgn
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
signer
-
05/19/2025 10:07:23 AM
rwxr-xr-x
Editing: HandlerList.php
Close
<?php namespace Aws; /** * Builds a single handler function from zero or more middleware functions and * a handler. The handler function is then used to send command objects and * return a promise that is resolved with an AWS result object. * * The "front" of the list is invoked before the "end" of the list. You can add * middleware to the front of the list using one of the "prepend" method, and * the end of the list using one of the "append" method. The last function * invoked in a handler list is the handler (a function that does not accept a * next handler but rather is responsible for returning a promise that is * fulfilled with an Aws\ResultInterface object). * * Handlers are ordered using a "step" that describes the step at which the * SDK is when sending a command. The available steps are: * * - init: The command is being initialized, allowing you to do things like add * default options. * - validate: The command is being validated before it is serialized * - build: The command is being serialized into an HTTP request. A middleware * in this step MUST serialize an HTTP request and populate the "@request" * parameter of a command with the request such that it is available to * subsequent middleware. * - sign: The request is being signed and prepared to be sent over the wire. * * Middleware can be registered with a name to allow you to easily add a * middleware before or after another middleware by name. This also allows you * to remove a middleware by name (in addition to removing by instance). */ class HandlerList implements \Countable { const INIT = 'init'; const VALIDATE = 'validate'; const BUILD = 'build'; const SIGN = 'sign'; const ATTEMPT = 'attempt'; /** @var callable */ private $handler; /** @var array */ private $named = []; /** @var array */ private $sorted; /** @var callable|null */ private $interposeFn; /** @var array Steps (in reverse order) */ private $steps = [ self::ATTEMPT => [], self::SIGN => [], self::BUILD => [], self::VALIDATE => [], self::INIT => [], ]; /** * @param callable $handler HTTP handler. */ public function __construct(callable $handler = null) { $this->handler = $handler; } /** * Dumps a string representation of the list. * * @return string */ public function __toString() { $str = ''; $i = 0; foreach (array_reverse($this->steps) as $k => $step) { foreach (array_reverse($step) as $j => $tuple) { $str .= "{$i}) Step: {$k}, "; if ($tuple[1]) { $str .= "Name: {$tuple[1]}, "; } $str .= "Function: " . $this->debugCallable($tuple[0]) . "\n"; $i++; } } if ($this->handler) { $str .= "{$i}) Handler: " . $this->debugCallable($this->handler) . "\n"; } return $str; } /** * Set the HTTP handler that actually returns a response. * * @param callable $handler Function that accepts a request and array of * options and returns a Promise. */ public function setHandler(callable $handler) { $this->handler = $handler; } /** * Returns true if the builder has a handler. * * @return bool */ public function hasHandler() { return (bool) $this->handler; } /** * Append a middleware to the init step. * * @param callable $middleware Middleware function to add. * @param string $name Name of the middleware. */ public function appendInit(callable $middleware, $name = null) { $this->add(self::INIT, $name, $middleware); } /** * Prepend a middleware to the init step. * * @param callable $middleware Middleware function to add. * @param string $name Name of the middleware. */ public function prependInit(callable $middleware, $name = null) { $this->add(self::INIT, $name, $middleware, true); } /** * Append a middleware to the validate step. * * @param callable $middleware Middleware function to add. * @param string $name Name of the middleware. */ public function appendValidate(callable $middleware, $name = null) { $this->add(self::VALIDATE, $name, $middleware); } /** * Prepend a middleware to the validate step. * * @param callable $middleware Middleware function to add. * @param string $name Name of the middleware. */ public function prependValidate(callable $middleware, $name = null) { $this->add(self::VALIDATE, $name, $middleware, true); } /** * Append a middleware to the build step. * * @param callable $middleware Middleware function to add. * @param string $name Name of the middleware. */ public function appendBuild(callable $middleware, $name = null) { $this->add(self::BUILD, $name, $middleware); } /** * Prepend a middleware to the build step. * * @param callable $middleware Middleware function to add. * @param string $name Name of the middleware. */ public function prependBuild(callable $middleware, $name = null) { $this->add(self::BUILD, $name, $middleware, true); } /** * Append a middleware to the sign step. * * @param callable $middleware Middleware function to add. * @param string $name Name of the middleware. */ public function appendSign(callable $middleware, $name = null) { $this->add(self::SIGN, $name, $middleware); } /** * Prepend a middleware to the sign step. * * @param callable $middleware Middleware function to add. * @param string $name Name of the middleware. */ public function prependSign(callable $middleware, $name = null) { $this->add(self::SIGN, $name, $middleware, true); } /** * Append a middleware to the attempt step. * * @param callable $middleware Middleware function to add. * @param string $name Name of the middleware. */ public function appendAttempt(callable $middleware, $name = null) { $this->add(self::ATTEMPT, $name, $middleware); } /** * Prepend a middleware to the attempt step. * * @param callable $middleware Middleware function to add. * @param string $name Name of the middleware. */ public function prependAttempt(callable $middleware, $name = null) { $this->add(self::ATTEMPT, $name, $middleware, true); } /** * Add a middleware before the given middleware by name. * * @param string|callable $findName Add before this * @param string $withName Optional name to give the middleware * @param callable $middleware Middleware to add. */ public function before($findName, $withName, callable $middleware) { $this->splice($findName, $withName, $middleware, true); } /** * Add a middleware after the given middleware by name. * * @param string|callable $findName Add after this * @param string $withName Optional name to give the middleware * @param callable $middleware Middleware to add. */ public function after($findName, $withName, callable $middleware) { $this->splice($findName, $withName, $middleware, false); } /** * Remove a middleware by name or by instance from the list. * * @param string|callable $nameOrInstance Middleware to remove. */ public function remove($nameOrInstance) { if (is_callable($nameOrInstance)) { $this->removeByInstance($nameOrInstance); } elseif (is_string($nameOrInstance)) { $this->removeByName($nameOrInstance); } } /** * Interpose a function between each middleware (e.g., allowing for a trace * through the middleware layers). * * The interpose function is a function that accepts a "step" argument as a * string and a "name" argument string. This function must then return a * function that accepts the next handler in the list. This function must * then return a function that accepts a CommandInterface and optional * RequestInterface and returns a promise that is fulfilled with an * Aws\ResultInterface or rejected with an Aws\Exception\AwsException * object. * * @param callable|null $fn Pass null to remove any previously set function */ public function interpose(callable $fn = null) { $this->sorted = null; $this->interposeFn = $fn; } /** * Compose the middleware and handler into a single callable function. * * @return callable */ public function resolve() { if (!($prev = $this->handler)) { throw new \LogicException('No handler has been specified'); } if ($this->sorted === null) { $this->sortMiddleware(); } foreach ($this->sorted as $fn) { $prev = $fn($prev); } return $prev; } /** * @return int */ #[\ReturnTypeWillChange] public function count() { return count($this->steps[self::INIT]) + count($this->steps[self::VALIDATE]) + count($this->steps[self::BUILD]) + count($this->steps[self::SIGN]) + count($this->steps[self::ATTEMPT]); } /** * Splices a function into the middleware list at a specific position. * * @param $findName * @param $withName * @param callable $middleware * @param $before */ private function splice($findName, $withName, callable $middleware, $before) { if (!isset($this->named[$findName])) { throw new \InvalidArgumentException("$findName not found"); } $idx = $this->sorted = null; $step = $this->named[$findName]; if ($withName) { $this->named[$withName] = $step; } foreach ($this->steps[$step] as $i => $tuple) { if ($tuple[1] === $findName) { $idx = $i; break; } } $replacement = $before ? [$this->steps[$step][$idx], [$middleware, $withName]] : [[$middleware, $withName], $this->steps[$step][$idx]]; array_splice($this->steps[$step], $idx, 1, $replacement); } /** * Provides a debug string for a given callable. * * @param array|callable $fn Function to write as a string. * * @return string */ private function debugCallable($fn) { if (is_string($fn)) { return "callable({$fn})"; } if (is_array($fn)) { $ele = is_string($fn[0]) ? $fn[0] : get_class($fn[0]); return "callable(['{$ele}', '{$fn[1]}'])"; } return 'callable(' . spl_object_hash($fn) . ')'; } /** * Sort the middleware, and interpose if needed in the sorted list. */ private function sortMiddleware() { $this->sorted = []; if (!$this->interposeFn) { foreach ($this->steps as $step) { foreach ($step as $fn) { $this->sorted[] = $fn[0]; } } return; } $ifn = $this->interposeFn; // Interpose the interposeFn into the handler stack. foreach ($this->steps as $stepName => $step) { foreach ($step as $fn) { $this->sorted[] = $ifn($stepName, $fn[1]); $this->sorted[] = $fn[0]; } } } private function removeByName($name) { if (!isset($this->named[$name])) { return; } $this->sorted = null; $step = $this->named[$name]; $this->steps[$step] = array_values( array_filter( $this->steps[$step], function ($tuple) use ($name) { return $tuple[1] !== $name; } ) ); } private function removeByInstance(callable $fn) { foreach ($this->steps as $k => $step) { foreach ($step as $j => $tuple) { if ($tuple[0] === $fn) { $this->sorted = null; unset($this->named[$this->steps[$k][$j][1]]); unset($this->steps[$k][$j]); } } } } /** * Add a middleware to a step. * * @param string $step Middleware step. * @param string $name Middleware name. * @param callable $middleware Middleware function to add. * @param bool $prepend Prepend instead of append. */ private function add($step, $name, callable $middleware, $prepend = false) { $this->sorted = null; if ($prepend) { $this->steps[$step][] = [$middleware, $name]; } else { array_unshift($this->steps[$step], [$middleware, $name]); } if ($name) { $this->named[$name] = $step; } } }