src/Tool/ConfigurationTrait.php
protected function parseConfiguration($configuration = [], $defaults = [])
    {
        $configuration = array_merge($defaults, $this->mapConfiguration($configuration));

        array_walk($configuration, [$this, 'setConfig']);

        return $this;
    }
protected function parseConfiguration($configuration = [], $defaults = [])
    {
        $configuration = array_merge($defaults, $this->mapConfiguration($configuration));

        array_walk($configuration, [$this, 'setConfig']);

        return $this;
    }
protected function parseConfiguration ( $ configuration = [ ] , $ defaults = [ ] ) { $ configuration = array_merge ( $ defaults , $ this -> mapConfiguration ( $ configuration ) ) ; array_walk ( $ configuration , [ $ this , 'setConfig' ] ) ; return $ this ; }
Parse configuration using defaults

@param  array $configuration
@param  array $defaults

@return mixed
Parse configuration using defaults