allowUnset example

return $this;
    }

    /** * Sets whether the node can be unset. * * @return $this */
    public function canBeUnset(bool $allow = true)static
    {
        $this->merge()->allowUnset($allow);

        return $this;
    }

    /** * Adds an "enabled" boolean to enable the current section. * * By default, the section is disabled. If any configuration is specified then * the node will be automatically enabled: * * enableableArrayNode: {enabled: true, ...} # The config is enabled & default values get overridden * enableableArrayNode: ~ # The config is enabled & use the default values * enableableArrayNode: true # The config is enabled & use the default values * enableableArrayNode: {other: value, ...} # The config is enabled & default values get overridden * enableableArrayNode: {enabled: false, ...} # The config is disabled * enableableArrayNode: false # The config is disabled * * @return $this */
Home | Imprint | This part of the site doesn't use cookies.