-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathservices.yml
63 lines (61 loc) · 2.06 KB
/
services.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
services:
tokenize_command:
class: Helmich\TypoScriptLint\Command\TokenizeCommand
calls:
- [ injectTokenizer, [ '@tokenizer' ] ]
- [ injectTokenPrinter, [ '@token_printer_structured' ] ]
lint_command:
class: Helmich\TypoScriptLint\Command\LintCommand
public: true
arguments:
- '@linter'
- '@linter_configuration_locator'
- '@logger_builder'
- '@finder'
- '@dispatcher'
parse_command:
class: Helmich\TypoScriptLint\Command\ParseCommand
calls:
- [ injectParser, [ '@parser' ] ]
linter:
class: Helmich\TypoScriptLint\Linter\Linter
arguments: [ '@tokenizer', '@parser', '@sniff_locator' ]
linter_configuration:
class: Helmich\TypoScriptLint\Linter\LinterConfiguration
linter_configuration_locator:
class: Helmich\TypoScriptLint\Linter\Configuration\ConfigurationLocator
arguments: [ '@config_loader', '@config_processor' ]
logger_builder:
class: Helmich\TypoScriptLint\Logging\LinterLoggerBuilder
sniff_locator:
class: Helmich\TypoScriptLint\Linter\Sniff\SniffLocator
# Configuration management
config_locator:
class: Symfony\Component\Config\FileLocator
arguments:
- [ '%dir.cwd%', '%dir.typoscriptlint_root%' ]
config_yaml_loader:
class: Helmich\TypoScriptLint\Linter\Configuration\YamlConfigurationLoader
arguments: [ '@config_locator', '@yaml_parser', '@filesystem' ]
config_loader_resolver:
class: Symfony\Component\Config\Loader\LoaderResolver
arguments:
- [ '@config_yaml_loader' ]
config_loader:
class: Symfony\Component\Config\Loader\DelegatingLoader
arguments: [ '@config_loader_resolver' ]
config_processor:
class: Symfony\Component\Config\Definition\Processor
yaml_parser:
class: Symfony\Component\Yaml\Parser
# Tool classes
filesystem:
class: Helmich\TypoScriptLint\Util\Filesystem
finder:
class: Helmich\TypoScriptLint\Util\Finder
arguments: [ '@symfony_finder', '@filesystem' ]
symfony_finder:
class: Symfony\Component\Finder\Finder
shared: false
dispatcher:
synthetic: true