PHP Class Neos\Media\Tests\Functional\Fixtures\Controller\ImageController

Inheritance: extends Neos\Flow\Mvc\Controller\ActionController
Show file Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$assetRepository Neos\Media\Domain\Repository\AssetRepository
$resourceManager Neos\Flow\ResourceManagement\ResourceManager

Public Methods

Method Description
importAction ( string $importUri ) : string Imports a new image and persists it, including one variant
showImageVariantAction ( ImageVariant $imageVariant ) : void Shows an image variant
uploadAction ( Image $image ) : string Upload a new image and return an image variant, a thumbnail and additional information like it would be returned for the Neos backend.

Protected Methods

Method Description
initializeView ( Neos\Flow\Mvc\View\ViewInterface $view ) : void

Method Details

importAction() public method

Imports a new image and persists it, including one variant
public importAction ( string $importUri ) : string
$importUri string
return string

initializeView() protected method

protected initializeView ( Neos\Flow\Mvc\View\ViewInterface $view ) : void
$view Neos\Flow\Mvc\View\ViewInterface
return void

showImageVariantAction() public method

Shows an image variant
public showImageVariantAction ( ImageVariant $imageVariant ) : void
$imageVariant Neos\Media\Domain\Model\ImageVariant
return void

uploadAction() public method

Upload a new image and return an image variant, a thumbnail and additional information like it would be returned for the Neos backend.
public uploadAction ( Image $image ) : string
$image Neos\Media\Domain\Model\Image
return string

Property Details

$assetRepository protected property

protected AssetRepository,Neos\Media\Domain\Repository $assetRepository
return Neos\Media\Domain\Repository\AssetRepository

$resourceManager protected property

protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager
return Neos\Flow\ResourceManagement\ResourceManager