PHP Class Contao\CoreBundle\Image\ImageFactory

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

Public Methods

Method Description
__construct ( Contao\Image\ResizerInterface $resizer, Imagine\Image\ImagineInterface $imagine, Imagine\Image\ImagineInterface $imagineSvg, Symfony\Component\Filesystem\Filesystem $filesystem, Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework, boolean $bypassCache, array $imagineOptions, array $validExtensions ) Constructor.
create ( $path, $size = null, $targetPath = null )
getImportantPartFromLegacyMode ( Contao\Image\ImageInterface $image, $mode )

Private Methods

Method Description
createConfig ( integer | array | null $size, Contao\Image\ImageInterface $image ) : array Creates a resize configuration object.
createImportantPart ( string $path ) : Contao\Image\ImportantPart | null Fetches the important part from the database.

Method Details

__construct() public method

Constructor.
public __construct ( Contao\Image\ResizerInterface $resizer, Imagine\Image\ImagineInterface $imagine, Imagine\Image\ImagineInterface $imagineSvg, Symfony\Component\Filesystem\Filesystem $filesystem, Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework, boolean $bypassCache, array $imagineOptions, array $validExtensions )
$resizer Contao\Image\ResizerInterface
$imagine Imagine\Image\ImagineInterface
$imagineSvg Imagine\Image\ImagineInterface
$filesystem Symfony\Component\Filesystem\Filesystem
$framework Contao\CoreBundle\Framework\ContaoFrameworkInterface
$bypassCache boolean
$imagineOptions array
$validExtensions array

create() public method

public create ( $path, $size = null, $targetPath = null )

getImportantPartFromLegacyMode() public method

public getImportantPartFromLegacyMode ( Contao\Image\ImageInterface $image, $mode )
$image Contao\Image\ImageInterface