Aimeos\ShopBundle\Command\SetupCommand::setOptions PHP Method

setOptions() protected method

Extracts the configuration options from the input object and updates the configuration values in the config object.
protected setOptions ( Aimeos\MW\Config\Iface $conf, Symfony\Component\Console\Input\InputInterface $input )
$conf Aimeos\MW\Config\Iface Configuration object
$input Symfony\Component\Console\Input\InputInterface Input object
    protected function setOptions(\Aimeos\MW\Config\Iface $conf, InputInterface $input)
    {
        foreach ((array) $input->getOption('option') as $option) {
            list($name, $value) = explode(':', $option);
            $conf->set(str_replace('\\', '/', $name), $value);
        }
    }