Skip to content

Commit

Permalink
Replace invalid commands service with console container (#3759)
Browse files Browse the repository at this point in the history
* Replace invalid commands service with console container

* Replace console_container with key_value_storage

* Add cache_key service to services.yml
  • Loading branch information
LOBsTerr authored and jmolivas committed Feb 9, 2018
1 parent 5306d69 commit b596bfe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 2 additions & 0 deletions services.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
services:
console.root:
class: SplString
console.cache_key:
class: SplString
console.redbean:
class: RedBeanPHP\R
console.validator:
Expand Down
7 changes: 3 additions & 4 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,9 @@ public function validateCommands()
}
}

$this->container->set(
'console.invalid_commands',
$invalidCommands
);
$this->container
->get('console.key_value_storage')
->set('invalid_commands', $invalidCommands);

return;
}
Expand Down
7 changes: 3 additions & 4 deletions src/Bootstrap/DrupalCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ public function process(ContainerBuilder $container)
->setClass(TranslatorManager::class);

// Set console.invalid_commands service
$container->set(
'console.invalid_commands',
null
);
$container
->get('console.key_value_storage')
->set('invalid_commands', null);

// Set console.cache_key service
$container->set(
Expand Down

0 comments on commit b596bfe

Please sign in to comment.