protected function getConfig($config = []): ConfigInterface
    {
        $defaults = ConfigFactory::create(dirname(__DIR__, 2) . '/config/defaults.php', $config);
        $config   = $config
            ? ConfigFactory::createFromArray(array_merge_recursive($defaults->getArrayCopy(), $config->getArrayCopy()))
            : $defaults;

        return $config->getSubConfig('BrightNucleus\View');
    }
protected function getConfig($config = []): ConfigInterface
    {
        $defaults = ConfigFactory::create(dirname(__DIR__, 2) . '/config/defaults.php', $config);
        $config   = $config
            ? ConfigFactory::createFromArray(array_merge_recursive($defaults->getArrayCopy(), $config->getArrayCopy()))
            : $defaults;

        return $config->getSubConfig('BrightNucleus\View');
    }
protected function getConfig ( $ config = [ ] ) : ConfigInterface { $ defaults = ConfigFactory :: create ( dirname ( __DIR__ , 2 ) . '/config/defaults.php' , $ config ) ; $ config = $ config ? ConfigFactory :: createFromArray ( array_merge_recursive ( $ defaults -> getArrayCopy ( ) , $ config -> getArrayCopy ( ) ) ) : $ defaults ; return $ config -> getSubConfig ( 'BrightNucleus\View' ) ; }
Get the configuration to use in the ViewBuilder.

@since 0.2.0

@param ConfigInterface|array $config Config to merge with defaults.

@return ConfigInterface Configuration passed in through the constructor.
Get the configuration to use in the ViewBuilder .