lib/Pagon/ChildProcess.php
protected function childProcessOptions($options)
    {
        // Process options
        if ($options['cwd']) {
            chdir($options['cwd']);
        }

        // User to be change
        if ($options['user']) {
            $this->childChangeUser($options['user']);
        }

        // Env set
        if ($options['env']) {
            $this->childChangeEnv($options['env']);
        }

        // Env set
        if ($options['timeout']) {
            $this->childSetTimeout($options['timeout']);
        }

        // Support callback
        if ($options['callback'] instanceof \Closure) {
            $options['callback']($this);
        }
    }
protected function childProcessOptions($options)
    {
        // Process options
        if ($options['cwd']) {
            chdir($options['cwd']);
        }

        // User to be change
        if ($options['user']) {
            $this->childChangeUser($options['user']);
        }

        // Env set
        if ($options['env']) {
            $this->childChangeEnv($options['env']);
        }

        // Env set
        if ($options['timeout']) {
            $this->childSetTimeout($options['timeout']);
        }

        // Support callback
        if ($options['callback'] instanceof \Closure) {
            $options['callback']($this);
        }
    }
protected function childProcessOptions ( $ options ) { // Process options if ( $ options [ 'cwd' ] ) { chdir ( $ options [ 'cwd' ] ) ; } // User to be change if ( $ options [ 'user' ] ) { $ this -> childChangeUser ( $ options [ 'user' ] ) ; } // Env set if ( $ options [ 'env' ] ) { $ this -> childChangeEnv ( $ options [ 'env' ] ) ; } // Env set if ( $ options [ 'timeout' ] ) { $ this -> childSetTimeout ( $ options [ 'timeout' ] ) ; } // Support callback if ( $ options [ 'callback' ] instanceof \ Closure ) { $ options [ 'callback' ] ( $ this ) ; } }
Process options in child

@param $options
Process options in child