yii\BaseYii::configure PHP 메소드

configure() 공개 정적인 메소드

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.
리턴 object the object itself
    public static function configure($object, $properties)
    {
        foreach ($properties as $name => $value) {
            $object->{$name} = $value;
        }
        return $object;
    }