Neos.Media.Browser/Classes/Controller/AssetController.php
public function showAction(string $assetSourceIdentifier, string $assetProxyIdentifier): void
    {
        if (!isset($this->assetSources[$assetSourceIdentifier])) {
            throw new \RuntimeException('Given asset source is not configured.', 1509702178);
        }

        $assetProxyRepository = $this->assetSources[$assetSourceIdentifier]->getAssetProxyRepository();
        try {
            $assetProxy = $assetProxyRepository->getAssetProxy($assetProxyIdentifier);

            $this->view->assignMultiple([
                'assetProxy' => $assetProxy,
                'assetCollections' => $this->assetCollectionRepository->findAll()
            ]);
        } catch (AssetNotFoundExceptionInterface $e) {
            $this->throwStatus(404, 'Asset not found');
        } catch (AssetSourceConnectionExceptionInterface $e) {
            $this->view->assign('connectionError', $e);
        }
    }
public function showAction(string $assetSourceIdentifier, string $assetProxyIdentifier): void
    {
        if (!isset($this->assetSources[$assetSourceIdentifier])) {
            throw new \RuntimeException('Given asset source is not configured.', 1509702178);
        }

        $assetProxyRepository = $this->assetSources[$assetSourceIdentifier]->getAssetProxyRepository();
        try {
            $assetProxy = $assetProxyRepository->getAssetProxy($assetProxyIdentifier);

            $this->view->assignMultiple([
                'assetProxy' => $assetProxy,
                'assetCollections' => $this->assetCollectionRepository->findAll()
            ]);
        } catch (AssetNotFoundExceptionInterface $e) {
            $this->throwStatus(404, 'Asset not found');
        } catch (AssetSourceConnectionExceptionInterface $e) {
            $this->view->assign('connectionError', $e);
        }
    }
public function showAction ( string $ assetSourceIdentifier , string $ assetProxyIdentifier ) : void { if ( ! isset ( $ this -> assetSources [ $ assetSourceIdentifier ] ) ) { throw new \ RuntimeException ( 'Given asset source is not configured.' , 1509702178 ) ; } $ assetProxyRepository = $ this -> assetSources [ $ assetSourceIdentifier ] -> getAssetProxyRepository ( ) ; try { $ assetProxy = $ assetProxyRepository -> getAssetProxy ( $ assetProxyIdentifier ) ; $ this -> view -> assignMultiple ( [ 'assetProxy' => $ assetProxy , 'assetCollections' => $ this -> assetCollectionRepository -> findAll ( ) ] ) ; } catch ( AssetNotFoundExceptionInterface $ e ) { $ this -> throwStatus ( 404 , 'Asset not found' ) ; } catch ( AssetSourceConnectionExceptionInterface $ e ) { $ this -> view -> assign ( 'connectionError' , $ e ) ; } }
Show an asset

@param string $assetSourceIdentifier
@param string $assetProxyIdentifier
@return void
@throws StopActionException
@throws UnsupportedRequestTypeException
Show an asset