public static function fromConfig(Config $config)
    {
        $message = sprintf(
            'Could not instantiate OptionRepository from Config with starting key "%1$s".',
            empty($config->getKeys())
                ? '<none>'
                : $config->getKeys()[0]
        );

        return new static($message);
    }
public static function fromConfig(Config $config)
    {
        $message = sprintf(
            'Could not instantiate OptionRepository from Config with starting key "%1$s".',
            empty($config->getKeys())
                ? '<none>'
                : $config->getKeys()[0]
        );

        return new static($message);
    }
public static function fromConfig ( Config $ config ) { $ message = sprintf ( 'Could not instantiate OptionRepository from Config with starting key "%1$s".' , empty ( $ config -> getKeys ( ) ) ? '<none>' : $ config -> getKeys ( ) [ 0 ] ) ; return new static ( $ message ) ; }
Get a new exception based on a Config that did not produce a valid repository.

@since 0.1.0

@param Config $config Config instance that was used.

@return static
Get a new exception based on a Config that did not produce a valid repository .