protected function mergeMvcConfig(ServiceLocatorInterface $serviceLocator, string $requestedName = null)
    {
        $config = $serviceLocator->has('config') ? $serviceLocator->get('config') : [];

        if (! isset($config['bsb_flysystem']['adapters'][$requestedName]['options']) ||
            ! is_array(($config['bsb_flysystem']['adapters'][$requestedName]['options']))
        ) {
            return;
        }

        $this->options = ArrayUtils::merge(
            $config['bsb_flysystem']['adapters'][$requestedName]['options'],
            $this->options
        );
    }
protected function mergeMvcConfig(ServiceLocatorInterface $serviceLocator, string $requestedName = null)
    {
        $config = $serviceLocator->has('config') ? $serviceLocator->get('config') : [];

        if (! isset($config['bsb_flysystem']['adapters'][$requestedName]['options']) ||
            ! is_array(($config['bsb_flysystem']['adapters'][$requestedName]['options']))
        ) {
            return;
        }

        $this->options = ArrayUtils::merge(
            $config['bsb_flysystem']['adapters'][$requestedName]['options'],
            $this->options
        );
    }
protected function mergeMvcConfig ( ServiceLocatorInterface $ serviceLocator , string $ requestedName = null ) { $ config = $ serviceLocator -> has ( 'config' ) ? $ serviceLocator -> get ( 'config' ) : [ ] ; if ( ! isset ( $ config [ 'bsb_flysystem' ] [ 'adapters' ] [ $ requestedName ] [ 'options' ] ) || ! is_array ( ( $ config [ 'bsb_flysystem' ] [ 'adapters' ] [ $ requestedName ] [ 'options' ] ) ) ) { return ; } $ this -> options = ArrayUtils :: merge ( $ config [ 'bsb_flysystem' ] [ 'adapters' ] [ $ requestedName ] [ 'options' ] , $ this -> options ) ; }
Merges the options given from the ServiceLocator Config object with the create options of the class.
Merges the options given from the ServiceLocator Config object with the create options of the class .