-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.php
51 lines (42 loc) · 1.52 KB
/
run.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
<?php
require './vendor/autoload.php';
ini_set('xdebug.max_nesting_level', 3000);
$t = new \Tusk\Tusk(Tusk\Configuration::create(
[
'source' => dirname(__DIR__) . '/mylegacyproject',
'target' => dirname(__DIR__) . '/myshinynewgroovyproject',
'namespaces' => [
'src' => '__AUTO__',
//folder actions go into package Shiny.Actions
'actions' => 'Shiny.Actions',
//include files go into package Shiny.Common
'include' => 'Shiny.Common',
],
//these folders are copied into the resources dir
'resources' => [
'templates' => 'templates',
'languages' => 'languages',
],
//the docs folder is copied into a new dir documentation
'other' => [
'docs' => 'documentation'
],
//if these class names appear, import statements are added
'onDemandImport' => [
'Controller' => 'Shiny.Controller',
'DatabaseInterface' => 'Shiny.DatabaseInterface',
'Event' => 'Shiny.Event',
'Base' => 'Shiny.Base',
'Pagination' => 'Shiny.Pagination',
],
//
'replaceNames' => [
//use function > import static
'between' => 'Shiny.functions.between',
'valNum' => 'Shiny.functions.valNum',
//simple name replacement, here a constant
'DIR_SEPERATOR' => "'/'",
]
]
));
$t->run();