yii\BaseYii::configure PHP Method

configure() public static method

Configures an object with the initial property values.
public static configure ( object $object, array $properties ) : object
$object object the object to be configured
$properties array the property initial values given in terms of name-value pairs.
return object the object itself
    public static function configure($object, $properties)
        foreach ($properties as $name => $value) {
            $object->{$name} = $value;
        return $object;