public function configure(Closure $callback)
    {
        if ( ! is_array($configuration = $callback($this->configuration))) {
            throw new Exceptions\InvalidConfigurationException($configuration);
        }

        $this->configuration = array_merge($this->defaultConfiguration, $configuration);
    }
public function configure(Closure $callback)
    {
        if ( ! is_array($configuration = $callback($this->configuration))) {
            throw new Exceptions\InvalidConfigurationException($configuration);
        }

        $this->configuration = array_merge($this->defaultConfiguration, $configuration);
    }
public function configure ( Closure $ callback ) { if ( ! is_array ( $ configuration = $ callback ( $ this -> configuration ) ) ) { throw new Exceptions \ InvalidConfigurationException ( $ configuration ) ; } $ this -> configuration = array_merge ( $ this -> defaultConfiguration , $ configuration ) ; }
Configures Essence via the given Closure.

@throws Essence\Exceptions\InvalidConfiguraitonException
@param Closure $callback
@return void
Configures Essence via the given Closure .