|
@@ -15,7 +15,7 @@ discard block |
|
|
block discarded – undo |
|
15
|
15
|
/**
|
|
16
|
16
|
* @var $type
|
|
17
|
17
|
*/
|
|
18
|
|
- public $type='project';
|
|
|
18
|
+ public $type = 'project';
|
|
19
|
19
|
|
|
20
|
20
|
/**
|
|
21
|
21
|
* @var array
|
|
@@ -32,7 +32,7 @@ discard block |
|
|
block discarded – undo |
|
32
|
32
|
/**
|
|
33
|
33
|
* @var $commandRule
|
|
34
|
34
|
*/
|
|
35
|
|
- public $commandRule=[];
|
|
|
35
|
+ public $commandRule = [];
|
|
36
|
36
|
|
|
37
|
37
|
/**
|
|
38
|
38
|
* @method create
|
|
@@ -47,17 +47,17 @@ discard block |
|
|
block discarded – undo |
|
47
|
47
|
$this->directory['projectDir'] = $this->projectPath();
|
|
48
|
48
|
$this->argument['exceptionNamespace'] = app()->namespace()->exception();
|
|
49
|
49
|
$this->argument['resourcePath'] = app()->path()->appResourche();
|
|
50
|
|
- $this->argument['testNamespace'] = app()->namespace()->tests();
|
|
|
50
|
+ $this->argument['testNamespace'] = app()->namespace()->tests();
|
|
51
|
51
|
|
|
52
|
|
- $recursiveDefaultDirectory = explode("\\",$this->argument['project']);
|
|
|
52
|
+ $recursiveDefaultDirectory = explode("\\", $this->argument['project']);
|
|
53
|
53
|
$this->argument['applicationName'] = pos($recursiveDefaultDirectory);
|
|
54
|
54
|
$recursiveDefaultDirectory[] = 'V1';
|
|
55
|
55
|
$recursiveDefaultDirectoryList = [];
|
|
56
|
56
|
|
|
57
|
|
- foreach (array_slice($recursiveDefaultDirectory,1) as $defaultDirectory){
|
|
|
57
|
+ foreach (array_slice($recursiveDefaultDirectory, 1) as $defaultDirectory) {
|
|
58
|
58
|
|
|
59
|
|
- $recursiveDefaultDirectoryList[]=$defaultDirectory;
|
|
60
|
|
- $this->directory[$defaultDirectory.'Path'] = $this->projectPath().''.implode("/",$recursiveDefaultDirectoryList);
|
|
|
59
|
+ $recursiveDefaultDirectoryList[] = $defaultDirectory;
|
|
|
60
|
+ $this->directory[$defaultDirectory.'Path'] = $this->projectPath().''.implode("/", $recursiveDefaultDirectoryList);
|
|
61
|
61
|
}
|
|
62
|
62
|
|
|
63
|
63
|
//$this->directory['optionalDir'] = $this->optional();
|
|
@@ -99,11 +99,11 @@ discard block |
|
|
block discarded – undo |
|
99
|
99
|
$this->touch['kernel/exception'] = $this->provider().'/ExceptionServiceProvider.php';
|
|
100
|
100
|
$this->touch['kernel/response'] = $this->provider().'/ResponseServiceProvider.php';
|
|
101
|
101
|
$this->touch['kernel/entity'] = $this->provider().'/EntityServiceProvider.php';
|
|
102
|
|
- $this->touch['kernel/cache'] = $this->provider().'/CacheServiceProvider.php';
|
|
|
102
|
+ $this->touch['kernel/cache'] = $this->provider().'/CacheServiceProvider.php';
|
|
103
|
103
|
$this->touch['kernel/authenticate'] = $this->provider().'/AuthenticateServiceProvider.php';
|
|
104
|
104
|
$this->touch['kernel/role'] = $this->provider().'/RoleServiceProvider.php';
|
|
105
|
105
|
$this->touch['kernel/track'] = $this->provider().'/TrackServiceProvider.php';
|
|
106
|
|
- $this->touch['test/testcase'] = $this->test().'/TestCase.php';
|
|
|
106
|
+ $this->touch['test/testcase'] = $this->test().'/TestCase.php';
|
|
107
|
107
|
$this->touch['kernel/consoleevent'] = $this->provider().'/ConsoleEventServiceProvider.php';
|
|
108
|
108
|
$this->touch['middleware/authenticate'] = $this->middleware().'/Authenticate.php';
|
|
109
|
109
|
$this->touch['middleware/ratelimit'] = $this->middleware().'/RateLimit.php';
|
|
@@ -121,16 +121,16 @@ discard block |
|
|
block discarded – undo |
|
121
|
121
|
$this->touch['resource/index'] = $this->resource().'/index.html';
|
|
122
|
122
|
$this->touch['resource/index'] = $this->resource().'/'.StaticPathModel::$cache.'/index.html';
|
|
123
|
123
|
$this->touch['stub/index'] = $this->stub().'/index.html';
|
|
124
|
|
- $this->touch['stub/cccrudapp'] = $this->directory['stubControllerCreateCrudFileDir'] .'/app.stub';
|
|
125
|
|
- $this->touch['stub/cccrudconf'] = $this->directory['stubControllerCreateCrudFileDir'] .'/conf.stub';
|
|
126
|
|
- $this->touch['stub/cccrudcontrollerfilecrud'] = $this->directory['stubControllerCreateCrudFileDir'] .'/controllerfilecrud.stub';
|
|
127
|
|
- $this->touch['stub/cccruddeveloper'] = $this->directory['stubControllerCreateCrudFileDir'] .'/developer.stub';
|
|
128
|
|
- $this->touch['stub/cccruddoc'] = $this->directory['stubControllerCreateCrudFileDir'] .'/doc.stub';
|
|
129
|
|
- $this->touch['stub/cccruddummy'] = $this->directory['stubControllerCreateCrudFileDir'] .'/dummy.stub';
|
|
130
|
|
- $this->touch['stub/cccrudroute'] = $this->directory['stubControllerCreateCrudFileDir'] .'/routecrud.stub';
|
|
131
|
|
- $this->touch['stub/cccrudpolicy'] = $this->directory['stubControllerCreateCrudFileDir'] .'/policy.stub';
|
|
132
|
|
- $this->touch['stub/cccrudreadme'] = $this->directory['stubControllerCreateCrudFileDir'] .'/readme.stub';
|
|
133
|
|
- $this->touch['stub/cccrudresourceindex'] = $this->directory['stubControllerCreateCrudFileDir'] .'/resourceIndex.stub';
|
|
|
124
|
+ $this->touch['stub/cccrudapp'] = $this->directory['stubControllerCreateCrudFileDir'].'/app.stub';
|
|
|
125
|
+ $this->touch['stub/cccrudconf'] = $this->directory['stubControllerCreateCrudFileDir'].'/conf.stub';
|
|
|
126
|
+ $this->touch['stub/cccrudcontrollerfilecrud'] = $this->directory['stubControllerCreateCrudFileDir'].'/controllerfilecrud.stub';
|
|
|
127
|
+ $this->touch['stub/cccruddeveloper'] = $this->directory['stubControllerCreateCrudFileDir'].'/developer.stub';
|
|
|
128
|
+ $this->touch['stub/cccruddoc'] = $this->directory['stubControllerCreateCrudFileDir'].'/doc.stub';
|
|
|
129
|
+ $this->touch['stub/cccruddummy'] = $this->directory['stubControllerCreateCrudFileDir'].'/dummy.stub';
|
|
|
130
|
+ $this->touch['stub/cccrudroute'] = $this->directory['stubControllerCreateCrudFileDir'].'/routecrud.stub';
|
|
|
131
|
+ $this->touch['stub/cccrudpolicy'] = $this->directory['stubControllerCreateCrudFileDir'].'/policy.stub';
|
|
|
132
|
+ $this->touch['stub/cccrudreadme'] = $this->directory['stubControllerCreateCrudFileDir'].'/readme.stub';
|
|
|
133
|
+ $this->touch['stub/cccrudresourceindex'] = $this->directory['stubControllerCreateCrudFileDir'].'/resourceIndex.stub';
|
|
134
|
134
|
$this->touch['config/hateoas'] = $this->config().'/Hateoas.php';
|
|
135
|
135
|
//$this->touch['config/response'] = $this->config().'/Response.php';
|
|
136
|
136
|
$this->touch['config/redis'] = $this->config().'/Redis.php';
|
|
@@ -154,9 +154,9 @@ discard block |
|
|
block discarded – undo |
|
154
|
154
|
$this->touch['app/gitignore'] = $this->projectPath().'/.gitignore';
|
|
155
|
155
|
$this->touch['app/composer'] = $this->projectPath().'/composer.json';
|
|
156
|
156
|
$this->touch['test/index'] = $this->storage().'/index.html';
|
|
157
|
|
- $this->touch['exception/authenticate'] = $this->directory['exceptionDir'] .'/AuthenticateException.php';
|
|
158
|
|
- $this->touch['exception/noinput'] = $this->directory['exceptionDir'] .'/NoInputException.php';
|
|
159
|
|
- $this->touch['helpers/general'] = $this->directory['helperDir'] .'/General.php';
|
|
|
157
|
+ $this->touch['exception/authenticate'] = $this->directory['exceptionDir'].'/AuthenticateException.php';
|
|
|
158
|
+ $this->touch['exception/noinput'] = $this->directory['exceptionDir'].'/NoInputException.php';
|
|
|
159
|
+ $this->touch['helpers/general'] = $this->directory['helperDir'].'/General.php';
|
|
160
|
160
|
|
|
161
|
161
|
//set project touch
|
|
162
|
162
|
$this->file->touch($this);
|