|
@@ -196,7 +196,7 @@ discard block |
|
|
block discarded – undo |
|
196
|
196
|
$tokenizedFiles[] = $coreFile; |
|
197
|
197
|
} |
|
198
|
198
|
|
|
199
|
|
- if(!$this->isValidTemplatingEngine($this->tplEngine)) { |
|
|
199
|
+ if (!$this->isValidTemplatingEngine($this->tplEngine)) { |
|
200
|
200
|
throw new \Exception('Invalid templating engine: ' . $this->tplEngine); |
|
201
|
201
|
} |
|
202
|
202
|
|
|
@@ -215,7 +215,7 @@ discard block |
|
|
block discarded – undo |
|
215
|
215
|
$tokens['[TPL_ENGINE_EXT]'] = $this->tplEngine; |
|
216
|
216
|
|
|
217
|
217
|
// ROUTING |
|
218
|
|
- if(!$this->isValidRoutingEngine($this->routingEngine)) { |
|
|
218
|
+ if (!$this->isValidRoutingEngine($this->routingEngine)) { |
|
219
|
219
|
throw new \Exception('Invalid routing engine: ' . $this->routingEngine); |
|
220
|
220
|
} |
|
221
|
221
|
|
|
@@ -236,7 +236,7 @@ discard block |
|
|
block discarded – undo |
|
236
|
236
|
$this->replaceTokensInFiles($moduleDir, $tokenizedFiles, $tokens); |
|
237
|
237
|
|
|
238
|
238
|
|
|
239
|
|
- if($this->routingEngine === self::ROUTING_ENGINE_FASTROUTE) { |
|
|
239
|
+ if ($this->routingEngine === self::ROUTING_ENGINE_FASTROUTE) { |
|
240
|
240
|
rename( |
|
241
|
241
|
$moduleDir . DIRECTORY_SEPARATOR . $routingFiles[0], |
|
242
|
242
|
str_replace('IndexInvoke', 'Index', $moduleDir . DIRECTORY_SEPARATOR . $routingFiles[0] |
|
@@ -385,16 +385,16 @@ discard block |
|
|
block discarded – undo |
|
385
|
385
|
private function checkRouters(InputInterface $input, OutputInterface $output) |
|
386
|
386
|
{ |
|
387
|
387
|
// Aura Check |
|
388
|
|
- if($this->routingEngine == self::ROUTING_ENGINE_AURA && !class_exists('\Aura\Router\Router')) { |
|
|
388
|
+ if ($this->routingEngine == self::ROUTING_ENGINE_AURA && !class_exists('\Aura\Router\Router')) { |
|
389
|
389
|
$output->writeln("<comment>Aura Router doesn't appear to be loaded. Run: <info>composer require ppi/aura-router</info></comment>"); |
|
390
|
390
|
} |
|
391
|
391
|
|
|
392
|
392
|
// Laravel check |
|
393
|
|
- if($this->routingEngine == self::ROUTING_ENGINE_LARAVEL && !class_exists('\PPI\LaravelRouting\LaravelRouter')) { |
|
|
393
|
+ if ($this->routingEngine == self::ROUTING_ENGINE_LARAVEL && !class_exists('\PPI\LaravelRouting\LaravelRouter')) { |
|
394
|
394
|
$output->writeln("<comment>Laravel Router doesn't appear to be loaded. Run: <info>composer require ppi/laravel-router</info></comment>"); |
|
395
|
395
|
} |
|
396
|
396
|
|
|
397
|
|
- if($this->routingEngine == self::ROUTING_ENGINE_FASTROUTE && !class_exists('\PPI\FastRoute\Wrapper\FastRouteWrapper')) { |
|
|
397
|
+ if ($this->routingEngine == self::ROUTING_ENGINE_FASTROUTE && !class_exists('\PPI\FastRoute\Wrapper\FastRouteWrapper')) { |
|
398
|
398
|
$output->writeln("<comment>FastRoute Router doesn't appear to be loaded. Run: <info>composer require ppi/fast-route</info></comment>"); |
|
399
|
399
|
} |
|
400
|
400
|
|