Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/dceprojects.corals.io/vendor/nesk/rialto/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/dceprojects.corals.io/vendor/nesk/rialto/src/AbstractEntryPoint.php
<?php

namespace Nesk\Rialto;

use Nesk\Rialto\Interfaces\ShouldHandleProcessDelegation;

abstract class AbstractEntryPoint
{
    use Traits\CommunicatesWithProcessSupervisor;

    /**
     * Forbidden options for the user.
     *
     * @var string[]
     */
    protected $forbiddenOptions = ['stop_timeout'];

    /**
     * Instanciate the entry point of the implementation.
     */
    public function __construct(
        string $connectionDelegatePath,
        ?ShouldHandleProcessDelegation $processDelegate = null,
        array $implementationOptions = [],
        array $userOptions = []
    ) {
        $process = new ProcessSupervisor(
            $connectionDelegatePath,
            $processDelegate,
            $this->consolidateOptions($implementationOptions, $userOptions)
        );

        $this->setProcessSupervisor($process);
    }

    /**
     * Clean the user options.
     */
    protected function consolidateOptions(array $implementationOptions, array $userOptions): array
    {
        // Filter out the forbidden option
        $userOptions = array_diff_key($userOptions, array_flip($this->forbiddenOptions));

        // Merge the user options with the implementation ones
        return array_merge($implementationOptions, $userOptions);
    }
}

Spamworldpro Mini