src/Mordilion/Configurable/Configuration/Factory.php
public static function fromString(string $string, ?string $identifier): Configuration
    {
        $reader = static::getReader($identifier);

        return new Configuration($reader->loadString($string));
    }
public static function fromString(string $string, ?string $identifier): Configuration
    {
        $reader = static::getReader($identifier);

        return new Configuration($reader->loadString($string));
    }
public static function fromString ( string $ string , ? string $ identifier ) : Configuration { $ reader = static :: getReader ( $ identifier ) ; return new Configuration ( $ reader -> loadString ( $ string ) ) ; }
Creates a Configuration based on the provided $string.

@param string $string
@param string|null $identifier

@return Configuration
Creates a Configuration based on the provided $string .