-
-
Notifications
You must be signed in to change notification settings - Fork 104
/
config.php
75 lines (58 loc) · 3.19 KB
/
config.php
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
64
65
66
67
68
69
70
71
72
73
74
75
<?php
declare(strict_types = 1);
use Couscous\Application;
use Couscous\Module;
use Psr\Log\LogLevel;
use Symfony\Component\Console\Output\OutputInterface;
return [
'steps' => [
DI\get(Module\Config\Step\SetDefaultConfig::class),
DI\get(Module\Config\Step\LoadConfig::class),
DI\get(Module\Config\Step\OverrideConfigFromCLI::class),
DI\get(Module\Config\Step\OverrideBaseUrlForPreview::class),
DI\get(Module\Scripts\Step\ExecuteBeforeScripts::class),
DI\get(Module\Template\Step\UseDefaultTemplate::class),
DI\get(Module\Template\Step\FetchRemoteTemplate::class),
DI\get(Module\Template\Step\ValidateTemplateDirectory::class),
DI\get(Module\Dependencies\Step\InstallDependencies::class),
DI\get(Module\Markdown\Step\LoadMarkdownFiles::class),
DI\get(Module\Template\Step\LoadAssets::class),
DI\get(Module\Core\Step\AddImages::class),
DI\get(Module\Core\Step\AddCname::class),
DI\get(Module\Core\Step\AddFileNameToMetadata::class),
DI\get(Module\Markdown\Step\ParseMarkdownFrontMatter::class),
DI\get(Module\Markdown\Step\ProcessMarkdownFileName::class),
DI\get(Module\Markdown\Step\RewriteMarkdownLinks::class),
DI\get(Module\Markdown\Step\RenderMarkdown::class),
DI\get(Module\Markdown\Step\CreateHeadingIds::class),
DI\get(Module\Template\Step\AddPageListToLayoutVariables::class),
DI\get(Module\Template\Step\ProcessTwigLayouts::class),
DI\get(Module\Template\Step\AddLivereloadSnippet::class),
DI\get(Module\Core\Step\ClearTargetDirectory::class),
DI\get(Module\Core\Step\WriteFiles::class),
DI\get(Module\Scripts\Step\ExecuteAfterScripts::class),
],
Couscous\Generator::class => DI\autowire()
->constructorParameter('steps', DI\get('steps')),
'application' => DI\create(Symfony\Component\Console\Application::class)
->constructor('Couscous', 'dev-master')
->method('add', DI\get(Application\Cli\GenerateCommand::class))
->method('add', DI\get(Application\Cli\PreviewCommand::class))
->method('add', DI\get(Application\Cli\DeployCommand::class))
->method('add', DI\get(Application\Cli\ClearCommand::class))
->method('add', DI\get(Application\Cli\SelfUpdateCommand::class))
->method('add', DI\get(Application\Cli\TravisAutoDeployCommand::class))
->method('add', DI\get(Application\Cli\InitTemplateCommand::class)),
Symfony\Component\Console\Logger\ConsoleLogger::class => DI\autowire()
->constructorParameter('verbosityLevelMap', [
// Custom verbosity map
LogLevel::EMERGENCY => OutputInterface::VERBOSITY_NORMAL,
LogLevel::ALERT => OutputInterface::VERBOSITY_NORMAL,
LogLevel::CRITICAL => OutputInterface::VERBOSITY_NORMAL,
LogLevel::ERROR => OutputInterface::VERBOSITY_NORMAL,
LogLevel::WARNING => OutputInterface::VERBOSITY_NORMAL,
LogLevel::NOTICE => OutputInterface::VERBOSITY_NORMAL,
LogLevel::INFO => OutputInterface::VERBOSITY_VERBOSE,
LogLevel::DEBUG => OutputInterface::VERBOSITY_VERY_VERBOSE,
]),
];