Skip to content
PHP Ecosystem
Explore

ConfigApplierInterface

API reference › HTML Core › Config › ConfigApplierInterface

interfaceUIAwesome\Html\Core\Config\ConfigApplierInterface
Sourcesrc/Config/ConfigApplierInterface.php
Implemented by 1 type

Applies resolved config recipes to immutable component instances.

MethodDescriptionDefined by
apply() abstractApplies a recipe and returns the configured component instance.ConfigApplierInterface
abstract public function apply(object $component, UIAwesome\Html\Core\Config\Recipe $recipe, UIAwesome\Html\Core\Config\ComponentContext $context, bool $strict = true): object

Applies a recipe and returns the configured component instance.

Parameters

ParameterTypeDescription
$componentobjectComponent to configure.
$recipeRecipeResolved recipe to apply.
$contextComponentContextSemantic component context.
$strictboolWhether unavailable methods or incompatible return values must fail instead of being skipped.

Returns

object: Configured component instance.