public function set(string $name, string $config): self
    {
        try {
            $this->sections[$name] = new SectionConfiguration($config);
        } catch (\Throwable $e) {
            throw new \InvalidArgumentException(
                sprintf('AppSection "%s" configuration is invalid: %s', $name, $e->getMessage()), 0, $e
            );
        }

        return $this;
    }
public function set(string $name, string $config): self
    {
        try {
            $this->sections[$name] = new SectionConfiguration($config);
        } catch (\Throwable $e) {
            throw new \InvalidArgumentException(
                sprintf('AppSection "%s" configuration is invalid: %s', $name, $e->getMessage()), 0, $e
            );
        }

        return $this;
    }
public function set ( string $ name , string $ config ) : self { try { $ this -> sections [ $ name ] = new SectionConfiguration ( $ config ) ; } catch ( \ Throwable $ e ) { throw new \ InvalidArgumentException ( sprintf ( 'AppSection "%s" configuration is invalid: %s' , $ name , $ e -> getMessage ( ) ) , 0 , $ e ) ; } return $ this ; }
Set the configuration for a section.

@param string $name   Name of the section, must be unique within the service-prefix
@param string $config Configuration of the section, URI pattern

@return SectioningFactory Fluent interface
Set the configuration for a section .