/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/File/Pdf/Image.php
39 строк
991 B
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2022 Adobe * All Rights Reserved. */ declare(strict_types=1); namespace Magento\Framework\File\Pdf; use Magento\Framework\File\Pdf\ImageResource\ImageFactory; class Image { /** * @var \Magento\Framework\File\Pdf\ImageResource\ImageFactory */ private ImageFactory $imageFactory; /** * @param \Magento\Framework\File\Pdf\ImageResource\ImageFactory $imageFactory */ public function __construct(ImageFactory $imageFactory) { $this->imageFactory = $imageFactory; } /** * Filepath of image file * * @param string $filePath * @return \Zend_Pdf_Resource_Image|\Zend_Pdf_Resource_Image_Jpeg|\Zend_Pdf_Resource_Image_Png|\Zend_Pdf_Resource_Image_Tiff|object * @throws \Magento\Framework\Exception\FileSystemException * @throws \Zend_Pdf_Exception */ public function imageWithPathAdvanced(string $filePath) { return $this->imageFactory->factory($filePath); } }