-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathvisu.ctn
65 lines (50 loc) · 1.79 KB
/
visu.ctn
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
/**
* Import the main application
* The ctn file behind `app` is provided by the application using VISU.
*/
import app
/**
* Event Dispatching
*
* ----------------------------------------------------------------------------
*/
// main dispatcher
@visu.dispatcher: VISU\Signal\Dispatcher
- readSignalsFromContainer(@container)
/**
* Command line interface
*
* ----------------------------------------------------------------------------
*/
@visu.cli: League\CLImate\CLImate
@visu.command.registry: VISU\Command\CommandRegistry(@container)
- readCommandsFromContainer(@container)
@visu.command.cli_loader: VISU\Command\CommandLineInterfaceLoader(@visu.command.registry, @visu.cli)
/**
* VISU Commands
*/
@visu.command.cache_clear: VISU\Command\CacheClearCommand
= command: 'cache:clear'
@visu.command.dump_container: VISU\Command\ContainerDumpCommand(@container)
= command: 'container:dump'
@visu.command.available: VISU\Command\AvailableCommand(@visu.command.registry)
= command: 'commands:available'
@visu.command.maker: VISU\Command\MakerCommand(@visu.maker)
= command: 'make'
@visu.command.dump_signal_handlers: VISU\Command\SignalDumpCommand(@visu.dispatcher)
= command: 'signals:dump'
/**
* Maker / CodeGenerator
*
* ----------------------------------------------------------------------------
*/
@visu.maker.generator_class: VISU\Maker\Generator\ClassGenerator
:visu.maker.command_namespace: 'App/Command'
:visu.maker.path_commands_ctn: 'commands.ctn'
@visu.maker.generator_command: VISU\Maker\Generator\CommandGenerator
- setPathCommandsCtn(:visu.maker.path_commands_ctn)
- setCommandNamespace(:visu.maker.command_namespace)
// build the maker
@visu.maker: VISU\Maker\Maker
- bind(@visu.maker.generator_class)
- bind(@visu.maker.generator_command)