Configure property mapping for adding a new image variant.

@return void
177060
public function initializeCreateImageVariantAction()
    {
        $this->arguments->getArgument('asset')->getPropertyMappingConfiguration()
            ->allowOverrideTargetType()
            ->allowAllProperties()
            ->setTypeConverterOption(PersistentObjectConverter::class, PersistentObjectConverter::CONFIGURATION_CREATION_ALLOWED, true);
    }
994902
private function setProjectVersionProperties()
  {
    if ($this->myVersionProperty)
    {
      $this->project->setProperty($this->myVersionProperty, $this->myNewVersion['version']);
    }

    if ($this->myReleaseProperty)
    {
      $this->project->setProperty($this->myReleaseProperty, $this->myNewVersion['release']);
    }
    if ($this->myPreReleaseProperty)
    {
      $this->project->setProperty($this->myPreReleaseProperty, $this->myNewVersion['pre-release']);
    }


    if ($this->myMajorProperty)
    {
      $this->project->setProperty($this->myMajorProperty, $this->myNewVersion['major']);
    }
    if ($this->myMinorProperty)
    {
      $this->project->setProperty($this->myMinorProperty, $this->myNewVersion['minor']);
    }
    if ($this->myPatchProperty)
    {
      $this->project->setProperty($this->myPatchProperty, $this->myNewVersion['patch']);
    }
  }
729105
private function addMappings()
    {
        $indicesSettings = $this->indexSettings->getIndicesConfig();

        foreach ($this->_data as $requestName => $requestConfig) {
            $index = $requestConfig['index'];
            $this->_data[$requestName]['mapping'] = $indicesSettings[$index]['mapping'];
        }

        return $this;
    }
443731
public function imageChangeByUpload()
    {
        $formName = $this->owner->formName();
        if (!empty($_POST[$formName][$this->imageAttribute]) && $_POST[$formName][$this->imageAttribute] == 'empty') {
            // reset image
            $this->imageReset();
        } else {
            // upload new
            if (!empty($_FILES[$formName]['tmp_name'][$this->imageAttribute])) {
                $this->imageChange(
                    [$_FILES[$formName]['name'][$this->imageAttribute] => $_FILES[$formName]['tmp_name'][$this->imageAttribute]]
                );
            }
        }
    }
304164
protected function setDataImagesEditPage()
    {
        $options = array(
            'entity' => 'page',
            'images' => $this->getData('page.images', array())
        );

        $this->setItemThumb($options, $this->image);
        $this->setData('attached_images', $this->getWidgetImages($this->language, $options));
    }
1074293
public function beforeUpdate()
    {
        // prevent save empty image name value and also for correct remove old image
        $this->owner->setAttribute($this->imageAttribute, $this->owner->getOldAttribute($this->imageAttribute));
    }
222295
protected function initializeCreateAction(): void
    {
        $assetMappingConfiguration = $this->arguments->getArgument('asset')->getPropertyMappingConfiguration();
        $assetMappingConfiguration->allowProperties('title', 'resource', 'tags', 'assetCollections');
        $assetMappingConfiguration->setTypeConverterOption(PersistentObjectConverter::class, PersistentObjectConverter::CONFIGURATION_CREATION_ALLOWED, true);
        $assetMappingConfiguration->setTypeConverterOption(AssetInterfaceConverter::class, AssetInterfaceConverter::CONFIGURATION_ONE_PER_RESOURCE, true);
    }
331276
protected function configure()
    {
        $this
            ->setDescription('Make a query')
            ->addArgument(
                'app-name',
                InputArgument::REQUIRED,
                'App name'
            )
            ->addArgument(
                'index-name',
                InputArgument::REQUIRED,
                'Index name'
            )
            ->addArgument(
                'query',
                InputArgument::OPTIONAL,
                'Query text',
                ''
            )
            ->addOption(
                'page',
                null,
                InputOption::VALUE_OPTIONAL,
                'Page',
                ModelQuery::DEFAULT_PAGE
            )
            ->addOption(
                'size',
                null,
                InputOption::VALUE_OPTIONAL,
                'Number of results',
                ModelQuery::DEFAULT_SIZE
            )
            ->addOption(
                'parameter',
                null,
                InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
                'Query parameters',
                []
            );
    }
358548
public function configure($properties = array())
    {
        foreach ($properties as $name => $value) {
            if ( ! property_exists($this, $name)) {
                throw new PropertyDoesNotExist(sprintf('Property "%s" does not exist in %s', $name,
                    get_called_class()));
            }
            $this->{$name} = $value;
        }
    }
5533
protected function submitAddImageStyle()
    {
        $this->setSubmitted(null, $this->getParam());
        $this->setSubmittedList('actions');
        $this->validateComponent('image_style');
        $this->addImageStyle();
    }
1050444
protected function configure() {
		// set thumbnails path
		$path = $this->options['tmbPath'];
		if ($path) {
			if (!file_exists($path)) {
				if (@mkdir($path)) {
					chmod($path, $this->options['tmbPathMode']);
				} else {
					$path = '';
				}
			} 
			
			if (is_dir($path) && is_readable($path)) {
				$this->tmbPath = $path;
				$this->tmbPathWritable = is_writable($path);
			}
		}

		// set image manipulation library
		$type = preg_match('/^(imagick|gd|auto)$/i', $this->options['imgLib'])
			? strtolower($this->options['imgLib'])
			: 'auto';

		if (($type == 'imagick' || $type == 'auto') && extension_loaded('imagick')) {
			$this->imgLib = 'imagick';
		} else {
			$this->imgLib = function_exists('gd_info') ? 'gd' : '';
		}
		
	}
738458
@Override
    public void configure() {
        if (getProperties().containsKey(PROPERTY_NAME_FILE_PATTERN)) {
            filePattern = Pattern.compile(getProperties().get(PROPERTY_NAME_FILE_PATTERN).toString());
        } else {
            filePattern = Pattern.compile(DEFAULT_FILE_PATTERN);
        }
    }
530215
protected function addImageStyle()
    {
        $this->controlAccess('image_style_add');

        if ($this->image_style->add($this->getSubmitted())) {
            $this->redirect('admin/settings/imagestyle', $this->text('Image style has been added'), 'success');
        }

        $this->redirect('', $this->text('Image style has not been added'), 'warning');
    }
580628
public function disImageFiles()
    {
        $properties     = $this->getProperties();
        $acceptedFiles  = $properties['acceptedFiles'];
        $imagExt        = $this->getImageExtensionConstant();
        $acceptedFiles  = $this->rmAcceptedFiles($acceptedFiles, $imagExt);
        $properties['acceptedFiles']    = $acceptedFiles;
        $this->setProperties($properties);
        return $this;
    }
779898
public function loadConfiguration(): void
	{
		$this->validateConfig($this->defaults);
		$builder = $this->getContainerBuilder();

		$builder->addDefinition($this->prefix('parsedown'))
			->setFactory(ParsedownExtraAdapter::class);
	}
348504
protected function _setTheme()
    {
        $theme = $this->request->getParam('theme');
        if ($theme) {
            $this->viewBuilder()->setTheme($theme);
        }
    }
1008915
protected function setInstanceProperties()
    {
        $this->hook = $this->getInstance('gplcart\\core\\Hook');
        $this->route = $this->getInstance('gplcart\\core\\Route');
        $this->module = $this->getInstance('gplcart\\core\\Module');
        $this->config = $this->getInstance('gplcart\\core\\Config');
        $this->library = $this->getInstance('gplcart\\core\\Library');

        $this->cart = $this->getInstance('gplcart\\core\\models\\Cart');
        $this->user = $this->getInstance('gplcart\\core\\models\\User');
        $this->store = $this->getInstance('gplcart\\core\\models\\Store');
        $this->image = $this->getInstance('gplcart\\core\\models\\Image');
        $this->filter = $this->getInstance('gplcart\\core\\models\\Filter');
        $this->language = $this->getInstance('gplcart\\core\\models\\Language');
        $this->validator = $this->getInstance('gplcart\\core\\models\\Validator');
        $this->translation = $this->getInstance('gplcart\\core\\models\\Translation');

        $this->url = $this->getInstance('gplcart\\core\\helpers\\Url');
        $this->asset = $this->getInstance('gplcart\\core\\helpers\\Asset');
        $this->pager = $this->getInstance('gplcart\\core\\helpers\\Pager');
        $this->server = $this->getInstance('gplcart\\core\\helpers\\Server');
        $this->session = $this->getInstance('gplcart\\core\\helpers\\Session');
        $this->request = $this->getInstance('gplcart\\core\\helpers\\Request');
        $this->response = $this->getInstance('gplcart\\core\\helpers\\Response');
    }