Permalink
Browse files

OXDEV-1580 Update service names

Updated services names according common agreement.
  • Loading branch information...
MantasVaitkunas committed Oct 16, 2018
1 parent 2efabe3 commit 1c4859dabad78b41462226d177d2f23981093186
@@ -3,62 +3,55 @@ services:
class: OxidEsales\EshopCommunity\Internal\Console\Executor
public: true
arguments:
- '@symfony.component.console.application'
- '@console.commands_collection_builder'
- '@oxid_esales.console.symfony.component.console.application'
- '@oxid_esales.console.commands_collection_builder'
symfony.component.console.application:
oxid_esales.console.symfony.component.console.application:
class: Symfony\Component\Console\Application
public: false
Symfony\Component\Console\Output\ConsoleOutputInterface:
class: Symfony\Component\Console\Output\ConsoleOutput
public: false
console.commands_collection_builder:
oxid_esales.console.commands_collection_builder:
class: OxidEsales\EshopCommunity\Internal\Console\CommandsCollectionBuilder
arguments:
- '@console.commands_provider.component_commands_provider'
- '@console.commands_provider.module_commands_provider'
- '@console.commands_provider.services_commands_provider'
- '@oxid_esales.console.commands_provider.component_commands_provider'
- '@oxid_esales.console.commands_provider.module_commands_provider'
- '@oxid_esales.console.commands_provider.services_commands_provider'
console.commands_provider.component_commands_provider:
oxid_esales.console.commands_provider.component_commands_provider:
class: OxidEsales\EshopCommunity\Internal\Console\CommandsProvider\ComponentCommandsProvider
public: false
arguments: ['@Composer\Repository\WritableRepositoryInterface']
arguments: ['@oxid_esales.console.composer.repository.local_repository']
console.commands_provider.module_commands_provider:
oxid_esales.console.commands_provider.module_commands_provider:
class: OxidEsales\EshopCommunity\Internal\Console\CommandsProvider\ModuleCommandsProvider
public: false
autowire: true
console.commands_provider.services_commands_provider:
oxid_esales.console.commands_provider.services_commands_provider:
class: OxidEsales\EshopCommunity\Internal\Console\CommandsProvider\ServicesCommandsProvider
public: false
autowire: true
composer.composer:
oxid_esales.console.composer.composer:
class: Composer\Composer
public: true
factory: 'composer.factory:create'
arguments: ['@composer.io.null_io']
factory: 'oxid_esales.console.composer.factory:create'
arguments: ['@oxid_esales.console.composer.io.null_io']
composer.factory:
oxid_esales.console.composer.factory:
class: Composer\Factory
public: false
composer.io.null_io:
oxid_esales.console.composer.io.null_io:
class: Composer\IO\NullIO
public: false
composer.repository.manager:
oxid_esales.console.composer.repository.manager:
class: Composer\Repository\RepositoryManager
factory: 'composer.composer:getRepositoryManager'
public: false
Composer\Repository\WritableRepositoryInterface:
factory: 'composer.repository.manager:getLocalRepository'
factory: 'oxid_esales.console.composer.composer:getRepositoryManager'
public: false
symfony.component.console.input.argv_input:
class: Symfony\Component\Console\Input\ArgvInput
oxid_esales.console.composer.repository.local_repository:
class: Composer\Repository\FilesystemRepository
factory: 'oxid_esales.console.composer.repository.manager:getLocalRepository'
public: false
@@ -1,5 +1,5 @@
services:
command.module_activate_command:
oxid_esales.command.module_activate_command:
class: OxidEsales\EshopCommunity\Internal\Module\Command\ModuleActivateCommand
public: true
autowire: true
@@ -12,10 +12,9 @@ services:
tags:
- { name: 'console.command', command: 'oe:tests:test-command-changed-name' }
symfony.component.console.application:
oxid_esales.console.symfony.component.console.application:
class: Symfony\Component\Console\Application
public: false
calls:
- method: setAutoExit
arguments:
- false
- [setAutoExit, [false]]
@@ -19,7 +19,7 @@ public function testModuleActivation()
$moduleId = 'testmodule';
$consoleOutput = $this->execute(
$this->getApplication(),
$this->get('console.commands_collection_builder'),
$this->get('oxid_esales.console.commands_collection_builder'),
new ArrayInput(['command' => 'oe:module:activate', 'module-id' => $moduleId])
);
@@ -39,7 +39,7 @@ public function testWhenModuleAlreadyActive()
$moduleId = 'testmodule';
$consoleOutput = $this->execute(
$this->getApplication(),
$this->get('console.commands_collection_builder'),
$this->get('oxid_esales.console.commands_collection_builder'),
new ArrayInput(['command' => 'oe:module:activate', 'module-id' => $moduleId])
);
@@ -53,7 +53,7 @@ public function testNonExistingModuleActivation()
$moduleId = 'test';
$consoleOutput = $this->execute(
$this->getApplication(),
$this->get('console.commands_collection_builder'),
$this->get('oxid_esales.console.commands_collection_builder'),
new ArrayInput(['command' => 'oe:module:activate', 'module-id' => $moduleId])
);

0 comments on commit 1c4859d

Please sign in to comment.