PHP Class Contao\CoreBundle\Image\PictureFactory

Author: Martin Auswöger ([email protected])
Inheritance: implements Contao\CoreBundle\Image\PictureFactoryInterface
Show file Open project: contao/core-bundle

Public Methods

Method Description
__construct ( Contao\Image\PictureGeneratorInterface $pictureGenerator, Contao\CoreBundle\Image\ImageFactoryInterface $imageFactory, Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework, boolean $bypassCache, array $imagineOptions ) Constructor.
create ( $path, $size = null )
setDefaultDensities ( $densities )

Private Methods

Method Description
addImageAttributes ( Contao\Image\PictureInterface $picture, array $attributes ) : Contao\Image\PictureInterface Adds the image attributes.
createConfig ( integer | array | null $size ) : array>\array Creates a picture configuration.
createConfigItem ( ImageSizeModel | ImageSizeItemModel | null $imageSize ) : Contao\Image\PictureConfigurationItem Creates a picture configuration item.

Method Details

__construct() public method

Constructor.
public __construct ( Contao\Image\PictureGeneratorInterface $pictureGenerator, Contao\CoreBundle\Image\ImageFactoryInterface $imageFactory, Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework, boolean $bypassCache, array $imagineOptions )
$pictureGenerator Contao\Image\PictureGeneratorInterface
$imageFactory Contao\CoreBundle\Image\ImageFactoryInterface
$framework Contao\CoreBundle\Framework\ContaoFrameworkInterface
$bypassCache boolean
$imagineOptions array

create() public method

public create ( $path, $size = null )

setDefaultDensities() public method

public setDefaultDensities ( $densities )