Set the yaml to pass all the vars to the builders

@param array $yaml
@return void
431635
protected function setYamlConfig(array $yaml)
    {
        $this->yaml = array_replace_recursive(
            Yaml::parse(file_get_contents(__DIR__.'/../Resources/config/default.yml')),
            $yaml
        );
    }
97736
protected function yamlArrayToModel($array)
    {
        $filePermissions = $array;
        $permissions = [];
        $index = 0;

        foreach ($filePermissions as $code=>$permission) {
            $permission['permission'] = $code;

            $permissions[] = $permission;
        }

        $this->permissions = $permissions;
    }
759432
public function setResources(array $resources)
    {
        $this->resources = [];

        foreach ($resources as $resource) {
            $this->addResource($resource);
        }
    }
1311904
public function setAll(array $values) {
		foreach ($values as $name => $value) {
			$this->set($name, $value);
		}
	}
1226278
public function save( $array, $file )
    {
        try
        {
            ob_start( );

            $this->dump( $array );

            $data = ob_get_clean( );

            file_put_contents( $file, $this->filter( self::ON_YAML_SAVE_FILTER, $data, $array, $file ) );
        }
        catch ( \Exception $e )
        {
            throw new YamlException( $e->getMessage( ), $e->getCode( ), $e );
        }
    }
1086081
def __init_yaml():
    """"""
    global _yaml_initialized
    if not _yaml_initialized:
        _yaml_initialized = True
        yaml.add_constructor(u'tag:yaml.org,2002:Frame', _frame_constructor)
        yaml.add_constructor(u'tag:yaml.org,2002:Signal', _signal_constructor)
        yaml.add_representer(canmatrix.Frame, _frame_representer)
314393
protected function set_variables() {
		if ( ! is_array( $this->variables ) ) {
			$variable        = ( is_string( $this->variables ) && ! empty( $this->variables ) ) ? $this->variables : false;
			$this->variables = [];
			if ( $variable && empty( $this->variables ) ) {
				$this->variables[0]['name'] = $variable;
			}
		}
	}
567672
public static function set(array &$array, $key, $value)
    {
        $keys = explode('.', $key);
        foreach($keys as $key) {
            if(!isset($array[$key])) {
                $array[$key] = [];
            }
            $array = &$array[$key];
        }

        $array = $value;
    }
578153
public function setAttributes(array $attributes): void
    {
        $this->checkAttributeAssignable(array_keys($attributes));

        $this->setRawAttributes($attributes);
    }
1058681
public function setFromArray(array $fields)
    {
        foreach($fields as $key => $value)
        {
                $this->fields[$key] = $value;
                unset($key);
                unset($value);
        }
    }
72358
public function setAll($array) {
		$this->array = $array;
		$this->fileMap = null;

		$this->saver->save($this->fileName, $this->array, $this->fileMap);
	}
1366068
public function setSource(array $data, $fields = null)
    {
        $this->setModel(new \atk4\data\Model(new \atk4\data\Persistence_Static($data)), $fields);
    }
360444
protected function setVars()
    {
        $this->getModel()->setFaIcon('fa-text-width');
        $this->getModel()->setStyle('css'.S.'text.css');
        $this->getModel()->setTemplate('text.html.twig');
    }
635093
private static function registerSymfonyYaml()
    {
        if (
            ! isset(self::$classMap['yaml'])
            and ! isset(self::$classMap['yml'])
            and class_exists(self::SYMFONY_YAML)
        ) {
            self::registerExtension('yaml', self::YAML_ADAPTER);
            self::registerExtension('yml', self::YAML_ADAPTER);
        }
    }
1094880
public function setArrays(array $arrays)
    {
        $this->data = (isset($arrays[0]) && is_array($arrays[0])) ?
            $arrays :
            [$arrays];
    }
940172
public function setArray(array $data, bool $create = false): void
    {
        foreach ($data as $key => $value) {
            $this->set($key, $value, $create);
        }
    }
1230459
public static function parse($yaml)
    {
        return SymfonyYaml::parse(
            $yaml,
            $exceptionOnInvalidType = true,
            $objectSupport          = true,
            $objectForMap           = false
        );
    }