Skip to content

Commit

Permalink
Merge pull request #32 from kschroeder/develop
Browse files Browse the repository at this point in the history
Fixed the setting
  • Loading branch information
kschroeder committed Feb 17, 2017
2 parents b4560df + e41d71a commit 6e52cc1
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 21 deletions.
1 change: 1 addition & 0 deletions lib/Config/Storage/RelationalDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public function setValue($path, $value, $requestedContext = Config::CONTEXT_DEFA
'value' => $value,
'context' => $requestedContext
]);
$insert = $insert->getSqlString($this->adapter->getPlatform());
$this->adapter->query($insert);
$this->data[$requestedContext][$path] = $value;
}
Expand Down
2 changes: 0 additions & 2 deletions lib/Console/Command/ConfigurationBuild.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ class ConfigurationBuild extends Command

const COMMAND = 'magium:configuration:build';

protected $configurationFactory;

protected function configure()
{
$this
Expand Down
2 changes: 2 additions & 0 deletions lib/Console/Command/ConfigurationFactoryTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
trait ConfigurationFactoryTrait
{

protected $factory;

public function setConfigurationFactory(MagiumConfigurationFactoryInterface $factory)
{
$this->factory = $factory;
Expand Down
2 changes: 0 additions & 2 deletions lib/Console/Command/ConfigurationGet.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class ConfigurationGet extends Command

const COMMAND = 'magium:configuration:get';

protected $factory;

protected function configure()
{
$this
Expand Down
16 changes: 1 addition & 15 deletions lib/Console/Command/ConfigurationListKeys.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@

class ConfigurationListKeys extends Command
{
use ConfigurationFactoryTrait;

const COMMAND = 'magium:configuration:list-keys';

const INITIAL_MESSAGE = 'Valid configuration keys';

protected $factory;

protected function configure()
{
$this
Expand All @@ -28,19 +27,6 @@ protected function configure()
;
}

public function getConfigurationFactory()
{
if (!$this->factory instanceof MagiumConfigurationFactoryInterface) {
$this->factory = new MagiumConfigurationFactory();
}
return $this->factory;
}

public function setConfigurationFactory(MagiumConfigurationFactoryInterface $factory)
{
$this->factory = $factory;
}

protected function execute(InputInterface $input, OutputInterface $output)
{
$factory = $this->getConfigurationFactory();
Expand Down
2 changes: 0 additions & 2 deletions lib/Console/Command/ConfigurationSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ class ConfigurationSet extends Command

const COMMAND = 'magium:configuration:set';

protected $factory;

protected function configure()
{
$this
Expand Down

0 comments on commit 6e52cc1

Please sign in to comment.