Neos\Neos\Setup\Step\NeosSpecificRequirementsStep::findUnsupportedImageFormats PHP Метод

findUnsupportedImageFormats() защищенный Метод

protected findUnsupportedImageFormats ( string $driver ) : array
$driver string
Результат array Not supported image format
    protected function findUnsupportedImageFormats($driver)
    {
        $this->imagineFactory->injectSettings(array('driver' => ucfirst($driver)));
        $imagine = $this->imagineFactory->create();
        $unsupportedFormats = array();
        foreach (array('jpg', 'gif', 'png') as $imageFormat) {
            $imagePath = Files::concatenatePaths(array($this->packageManager->getPackage('Neos.Neos')->getResourcesPath(), 'Private/Installer/TestImages/Test.' . $imageFormat));
            try {
                $imagine->open($imagePath);
            } catch (\Exception $exception) {
                $unsupportedFormats[] = sprintf('"%s"', $imageFormat);
            }
        }
        return $unsupportedFormats;
    }