@@ -43,7 +43,7 @@ Create new config parameter:
4343``` php
4444$factory = new ConfigFactory();
4545$configItem = $factory->setName('key')
46- ->setType('boolean' )
46+ ->setType(ConfigDataType::BOOLEAN )
4747 ->setValue('1')
4848 ->setTags(['system'])//optional
4949 ->setDescription('Lorem ipsum dolor sit amet')
@@ -87,7 +87,7 @@ Update config with new values:
8787``` php
8888$factory = new ConfigFactory($configId);
8989$configItem = $factory->setName('updated-key')
90- ->setType('boolean' )
90+ ->setType(ConfigDataType::BOOLEAN )
9191 ->setValue('0')
9292 ->setTags(['system'])//optional
9393 ->setDescription('updated description')
@@ -145,7 +145,7 @@ You can also use helper functions:
145145// Creating config item
146146$factory = new ConfigFactory();
147147$configItem = $factory->setName('key')
148- ->setType('boolean' )
148+ ->setType(ConfigDataType::BOOLEAN )
149149 ->setValue('1')
150150 ->setTags(['system'])//optional
151151 ->setDescription('Lorem ipsum dolor sit amet')
@@ -165,7 +165,7 @@ set_config_value('key', 'value');
165165// Updating config item
166166$factory = new ConfigFactory($configId);
167167$configItem = $factory->setName('updated-key')
168- ->setType('boolean' )
168+ ->setType(ConfigDataType::BOOLEAN )
169169 ->setTags(['system'])//optional
170170 ->setValue('0')
171171 ->setDescription('updated description')
0 commit comments