protected function getParams($type, $value)
    {
        if (false === strpos($value, '-')) {
            throw new InvalidConfigurationException(sprintf('The "%s" option must be configured with "{prefix}-{size}"', $type));
        }

        list($prefix, $size) = explode('-', $value);

        if (!\in_array($prefix, $this->validPrefix)) {
            throw new InvalidConfigurationException(sprintf('The "%s" prefix option does not exist. Known options are: "'.implode('", "', $this->validPrefix).'"', $type));
        }

        if (!(int) $size) {
            throw new InvalidConfigurationException(sprintf('The "%s" size option must be an integer', $type));
        }

        return [$prefix, $size];
    }
protected function getParams($type, $value)
    {
        if (false === strpos($value, '-')) {
            throw new InvalidConfigurationException(sprintf('The "%s" option must be configured with "{prefix}-{size}"', $type));
        }

        list($prefix, $size) = explode('-', $value);

        if (!\in_array($prefix, $this->validPrefix)) {
            throw new InvalidConfigurationException(sprintf('The "%s" prefix option does not exist. Known options are: "'.implode('", "', $this->validPrefix).'"', $type));
        }

        if (!(int) $size) {
            throw new InvalidConfigurationException(sprintf('The "%s" size option must be an integer', $type));
        }

        return [$prefix, $size];
    }
protected function getParams ( $ type , $ value ) { if ( false === strpos ( $ value , '-' ) ) { throw new InvalidConfigurationException ( sprintf ( 'The "%s" option must be configured with "{prefix}-{size}"' , $ type ) ) ; } list ( $ prefix , $ size ) = explode ( '-' , $ value ) ; if ( ! \ in_array ( $ prefix , $ this -> validPrefix ) ) { throw new InvalidConfigurationException ( sprintf ( 'The "%s" prefix option does not exist. Known options are: "' . implode ( '", "' , $ this -> validPrefix ) . '"' , $ type ) ) ; } if ( ! ( int ) $ size ) { throw new InvalidConfigurationException ( sprintf ( 'The "%s" size option must be an integer' , $ type ) ) ; } return [ $ prefix , $ size ] ; }
Get the option params.

@param string $type  The option type
@param string $value The option value

@throws InvalidConfigurationException

@return array The prefix and size
Get the option params .