protected function processConfig(array $config)
    {
        $config['command_factory'] = self::defaultCommandFactory($this->getDescription());

        // we'll add our own patched processor after this
        parent::processConfig(
            array_merge(
                $config,
                [
                    'process' => false,
                ]
            )
        );

        if (!isset($config['process']) || $config['process'] === true) {
            $this->getEmitter()->attach(
                new ProcessResponse(
                    isset($config['debug']) ? $config['debug'] : false,
                    isset($config['response_locations']) ? $config['response_locations'] : []
                )
            );
        }
    }
protected function processConfig(array $config)
    {
        $config['command_factory'] = self::defaultCommandFactory($this->getDescription());

        // we'll add our own patched processor after this
        parent::processConfig(
            array_merge(
                $config,
                [
                    'process' => false,
                ]
            )
        );

        if (!isset($config['process']) || $config['process'] === true) {
            $this->getEmitter()->attach(
                new ProcessResponse(
                    isset($config['debug']) ? $config['debug'] : false,
                    isset($config['response_locations']) ? $config['response_locations'] : []
                )
            );
        }
    }
protected function processConfig ( array $ config ) { $ config [ 'command_factory' ] = self :: defaultCommandFactory ( $ this -> getDescription ( ) ) ; // we'll add our own patched processor after this parent :: processConfig ( array_merge ( $ config , [ 'process' => false , ] ) ) ; if ( ! isset ( $ config [ 'process' ] ) || $ config [ 'process' ] === true ) { $ this -> getEmitter ( ) -> attach ( new ProcessResponse ( isset ( $ config [ 'debug' ] ) ? $ config [ 'debug' ] : false , isset ( $ config [ 'response_locations' ] ) ? $ config [ 'response_locations' ] : [ ] ) ) ; } }
We're overriding this to use our command factory from above and to use
custom objects for API results.
We re overriding this to use our command factory from above and to use custom objects for API results .