Skip to content

Commit aca7ce7

Browse files
authored
Merge pull request #163 from mvrhov/sf4Command
Register the commands as services.
2 parents b3cce41 + fca28b4 commit aca7ce7

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

DependencyInjection/TranslationExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ public function load(array $configs, ContainerBuilder $container)
8080
if ('test' === getenv('ENV')) {
8181
$loader->load('services_test.yml');
8282
}
83+
84+
$loader->load('console.yml');
8385
}
8486

8587
/**

Resources/config/console.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
services:
2+
php_translator.console.delete_obsolete:
3+
class: Translation\Bundle\Command\DeleteObsoleteCommand
4+
public: true
5+
tags:
6+
- { name: console.command, command: translation:delete-obsolete}
7+
php_translator.console.download:
8+
class: Translation\Bundle\Command\DownloadCommand
9+
public: true
10+
tags:
11+
- { name: console.command, command: translation:download }
12+
php_translator.console.extract:
13+
class: Translation\Bundle\Command\ExtractCommand
14+
public: true
15+
tags:
16+
- { name: console.command, command: translation:extract }
17+
php_translator.console.status:
18+
class: Translation\Bundle\Command\StatusCommand
19+
public: true
20+
tags:
21+
- { name: console.command, command: translation:status }
22+
php_translator.console.sync:
23+
class: Translation\Bundle\Command\SyncCommand
24+
public: true
25+
tags:
26+
- { name: console.command, command: translation:sync }

0 commit comments

Comments
 (0)