public function getSharedFileMounts(array $appConfig)
    {
        $sharedFileMounts = [];
        if (!empty($appConfig['mounts'])) {
            foreach ($this->normalizeMounts($appConfig['mounts']) as $path => $definition) {
                if (isset($definition['source_path'])) {
                    $sharedFileMounts[$path] = $definition['source_path'] ?: 'files';
                }
            }
        }

        return $sharedFileMounts;
    }
public function getSharedFileMounts(array $appConfig)
    {
        $sharedFileMounts = [];
        if (!empty($appConfig['mounts'])) {
            foreach ($this->normalizeMounts($appConfig['mounts']) as $path => $definition) {
                if (isset($definition['source_path'])) {
                    $sharedFileMounts[$path] = $definition['source_path'] ?: 'files';
                }
            }
        }

        return $sharedFileMounts;
    }
public function getSharedFileMounts ( array $ appConfig ) { $ sharedFileMounts = [ ] ; if ( ! empty ( $ appConfig [ 'mounts' ] ) ) { foreach ( $ this -> normalizeMounts ( $ appConfig [ 'mounts' ] ) as $ path => $ definition ) { if ( isset ( $ definition [ 'source_path' ] ) ) { $ sharedFileMounts [ $ path ] = $ definition [ 'source_path' ] ? : 'files' ; } } } return $ sharedFileMounts ; }
Get a list of shared file mounts configured for an app.

@param array $appConfig The app configuration.

@return array
An array of shared file paths, keyed by the mount path. Leading and
trailing slashes are stripped. An empty shared path defaults to
'files'.
Get a list of shared file mounts configured for an app .