@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of the PPI Framework. |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright (c) 2011-2013 Paul Dragoonis <[email protected]> |
|
| 6 | - * @license http://opensource.org/licenses/mit-license.php MIT |
|
| 7 | - * |
|
| 8 | - * @link http://www.ppi.io |
|
| 9 | - */ |
|
| 3 | + * This file is part of the PPI Framework. |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright (c) 2011-2013 Paul Dragoonis <[email protected]> |
|
| 6 | + * @license http://opensource.org/licenses/mit-license.php MIT |
|
| 7 | + * |
|
| 8 | + * @link http://www.ppi.io |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PPI\Framework\View; |
| 12 | 12 | |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of the PPI Framework. |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright (c) 2012 Paul Dragoonis <[email protected]> |
|
| 6 | - * @license http://opensource.org/licenses/mit-license.php MIT |
|
| 7 | - * |
|
| 8 | - * @link http://www.ppi.io |
|
| 9 | - */ |
|
| 3 | + * This file is part of the PPI Framework. |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright (c) 2012 Paul Dragoonis <[email protected]> |
|
| 6 | + * @license http://opensource.org/licenses/mit-license.php MIT |
|
| 7 | + * |
|
| 8 | + * @link http://www.ppi.io |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PPI\Framework\View\Twig\Loader; |
| 12 | 12 | |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of the PPI Framework. |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright (c) 2012 Paul Dragoonis <[email protected]> |
|
| 6 | - * @license http://opensource.org/licenses/mit-license.php MIT |
|
| 7 | - * |
|
| 8 | - * @link http://www.ppi.io |
|
| 9 | - */ |
|
| 3 | + * This file is part of the PPI Framework. |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright (c) 2012 Paul Dragoonis <[email protected]> |
|
| 6 | + * @license http://opensource.org/licenses/mit-license.php MIT |
|
| 7 | + * |
|
| 8 | + * @link http://www.ppi.io |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PPI\Framework\View\Twig\Loader; |
| 12 | 12 | |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of the PPI Framework. |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright (c) 2012 Paul Dragoonis <[email protected]> |
|
| 6 | - * @license http://opensource.org/licenses/mit-license.php MIT |
|
| 7 | - * |
|
| 8 | - * @link http://www.ppi.io |
|
| 9 | - */ |
|
| 3 | + * This file is part of the PPI Framework. |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright (c) 2012 Paul Dragoonis <[email protected]> |
|
| 6 | + * @license http://opensource.org/licenses/mit-license.php MIT |
|
| 7 | + * |
|
| 8 | + * @link http://www.ppi.io |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PPI\Framework\View\Twig\Loader; |
| 12 | 12 | |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of the PPI Framework. |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright (c) 2011-2013 Paul Dragoonis <[email protected]> |
|
| 6 | - * @license http://opensource.org/licenses/mit-license.php MIT |
|
| 7 | - * |
|
| 8 | - * @link http://www.ppi.io |
|
| 9 | - */ |
|
| 3 | + * This file is part of the PPI Framework. |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright (c) 2011-2013 Paul Dragoonis <[email protected]> |
|
| 6 | + * @license http://opensource.org/licenses/mit-license.php MIT |
|
| 7 | + * |
|
| 8 | + * @link http://www.ppi.io |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PPI\Framework\View; |
| 12 | 12 | |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of the PPI Framework. |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright (c) 2011-2013 Paul Dragoonis <[email protected]> |
|
| 6 | - * @license http://opensource.org/licenses/mit-license.php MIT |
|
| 7 | - * |
|
| 8 | - * @link http://www.ppi.io |
|
| 9 | - */ |
|
| 3 | + * This file is part of the PPI Framework. |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright (c) 2011-2013 Paul Dragoonis <[email protected]> |
|
| 6 | + * @license http://opensource.org/licenses/mit-license.php MIT |
|
| 7 | + * |
|
| 8 | + * @link http://www.ppi.io |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PPI\Framework\View; |
| 12 | 12 | |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of the PPI Framework. |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright (c) 2011-2013 Paul Dragoonis <[email protected]> |
|
| 6 | - * @license http://opensource.org/licenses/mit-license.php MIT |
|
| 7 | - * |
|
| 8 | - * @link http://www.ppi.io |
|
| 9 | - */ |
|
| 3 | + * This file is part of the PPI Framework. |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright (c) 2011-2013 Paul Dragoonis <[email protected]> |
|
| 6 | + * @license http://opensource.org/licenses/mit-license.php MIT |
|
| 7 | + * |
|
| 8 | + * @link http://www.ppi.io |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PPI\Framework\View; |
| 12 | 12 | |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of the PPI Framework. |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright (c) 2011-2013 Paul Dragoonis <[email protected]> |
|
| 6 | - * @license http://opensource.org/licenses/mit-license.php MIT |
|
| 7 | - * |
|
| 8 | - * @link http://www.ppi.io |
|
| 9 | - */ |
|
| 3 | + * This file is part of the PPI Framework. |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright (c) 2011-2013 Paul Dragoonis <[email protected]> |
|
| 6 | + * @license http://opensource.org/licenses/mit-license.php MIT |
|
| 7 | + * |
|
| 8 | + * @link http://www.ppi.io |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PPI\Framework\View; |
| 12 | 12 | |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file is part of the PPI Framework. |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright (c) 2011-2013 Paul Dragoonis <[email protected]> |
|
| 6 | - * @license http://opensource.org/licenses/mit-license.php MIT |
|
| 7 | - * |
|
| 8 | - * @link http://www.ppi.io |
|
| 9 | - */ |
|
| 3 | + * This file is part of the PPI Framework. |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright (c) 2011-2013 Paul Dragoonis <[email protected]> |
|
| 6 | + * @license http://opensource.org/licenses/mit-license.php MIT |
|
| 7 | + * |
|
| 8 | + * @link http://www.ppi.io |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PPI\Framework\View; |
| 12 | 12 | |
@@ -190,39 +190,39 @@ |
||
| 190 | 190 | |
| 191 | 191 | // Copy files relative to the selected templating engine |
| 192 | 192 | switch ($this->tplEngine) { |
| 193 | - case self::TPL_ENGINE_PHP: |
|
| 194 | - case self::TPL_ENGINE_TWIG: |
|
| 195 | - case self::TPL_ENGINE_SMARTY: |
|
| 196 | - // Copy templating files over |
|
| 197 | - $tplFiles = $this->tplEngineFilesMap[$this->tplEngine]; |
|
| 198 | - $this->copyFiles($this->skeletonModuleDir, $moduleDir, $tplFiles); |
|
| 199 | - // Setting up templating tokens |
|
| 200 | - foreach ($tplFiles as $tplFile) { |
|
| 201 | - $tokenizedFiles[] = $tplFile; |
|
| 202 | - } |
|
| 203 | - $tokens['[MODULE_NAME]'] = $moduleName; |
|
| 204 | - $tokens['[TPL_ENGINE_EXT]'] = $this->tplEngine; |
|
| 205 | - break; |
|
| 193 | + case self::TPL_ENGINE_PHP: |
|
| 194 | + case self::TPL_ENGINE_TWIG: |
|
| 195 | + case self::TPL_ENGINE_SMARTY: |
|
| 196 | + // Copy templating files over |
|
| 197 | + $tplFiles = $this->tplEngineFilesMap[$this->tplEngine]; |
|
| 198 | + $this->copyFiles($this->skeletonModuleDir, $moduleDir, $tplFiles); |
|
| 199 | + // Setting up templating tokens |
|
| 200 | + foreach ($tplFiles as $tplFile) { |
|
| 201 | + $tokenizedFiles[] = $tplFile; |
|
| 202 | + } |
|
| 203 | + $tokens['[MODULE_NAME]'] = $moduleName; |
|
| 204 | + $tokens['[TPL_ENGINE_EXT]'] = $this->tplEngine; |
|
| 205 | + break; |
|
| 206 | 206 | } |
| 207 | 207 | // Routing |
| 208 | 208 | switch ($this->routingEngine) { |
| 209 | - case self::ROUTING_ENGINE_SYMFONY: |
|
| 210 | - case self::ROUTING_ENGINE_AURA: |
|
| 211 | - case self::ROUTING_ENGINE_LARAVEL: |
|
| 212 | - case self::ROUTING_ENGINE_FASTROUTE: |
|
| 213 | - // Copy routing files over |
|
| 214 | - $routingFiles = $this->routingEngineFilesMap[$this->routingEngine]; |
|
| 215 | - $this->copyFiles($this->skeletonModuleDir, $moduleDir, $routingFiles); |
|
| 216 | - |
|
| 217 | - // Setting up routing tokens |
|
| 218 | - foreach ($routingFiles as $routingFile) { |
|
| 219 | - $tokenizedFiles[] = $routingFile; |
|
| 220 | - } |
|
| 221 | - $routingTokensMap = $this->routingEngineTokenMap[$this->routingEngine]; |
|
| 222 | - foreach ($routingTokensMap as $routingTokenKey => $routingTokenVal) { |
|
| 223 | - $tokens[$routingTokenKey] = $routingTokenVal; |
|
| 224 | - } |
|
| 225 | - break; |
|
| 209 | + case self::ROUTING_ENGINE_SYMFONY: |
|
| 210 | + case self::ROUTING_ENGINE_AURA: |
|
| 211 | + case self::ROUTING_ENGINE_LARAVEL: |
|
| 212 | + case self::ROUTING_ENGINE_FASTROUTE: |
|
| 213 | + // Copy routing files over |
|
| 214 | + $routingFiles = $this->routingEngineFilesMap[$this->routingEngine]; |
|
| 215 | + $this->copyFiles($this->skeletonModuleDir, $moduleDir, $routingFiles); |
|
| 216 | + |
|
| 217 | + // Setting up routing tokens |
|
| 218 | + foreach ($routingFiles as $routingFile) { |
|
| 219 | + $tokenizedFiles[] = $routingFile; |
|
| 220 | + } |
|
| 221 | + $routingTokensMap = $this->routingEngineTokenMap[$this->routingEngine]; |
|
| 222 | + foreach ($routingTokensMap as $routingTokenKey => $routingTokenVal) { |
|
| 223 | + $tokens[$routingTokenKey] = $routingTokenVal; |
|
| 224 | + } |
|
| 225 | + break; |
|
| 226 | 226 | } |
| 227 | 227 | |
| 228 | 228 | // Replace tokens in all files |
@@ -351,16 +351,16 @@ |
||
| 351 | 351 | private function checkRouters(InputInterface $input, OutputInterface $output) |
| 352 | 352 | { |
| 353 | 353 | // Aura Check |
| 354 | - if($this->routingEngine == self::ROUTING_ENGINE_AURA && !class_exists('\Aura\Router\Router')) { |
|
| 354 | + if ($this->routingEngine == self::ROUTING_ENGINE_AURA && !class_exists('\Aura\Router\Router')) { |
|
| 355 | 355 | $output->writeln("<comment>Aura Router doesn't appear to be loaded. Run: <info>composer require ppi/aura-router</info></comment>"); |
| 356 | 356 | } |
| 357 | 357 | |
| 358 | 358 | // Laravel check |
| 359 | - if($this->routingEngine == self::ROUTING_ENGINE_LARAVEL && !class_exists('\PPI\LaravelRouting\LaravelRouter')) { |
|
| 359 | + if ($this->routingEngine == self::ROUTING_ENGINE_LARAVEL && !class_exists('\PPI\LaravelRouting\LaravelRouter')) { |
|
| 360 | 360 | $output->writeln("<comment>Laravel Router doesn't appear to be loaded. Run: <info>composer require ppi/laravel-router</info></comment>"); |
| 361 | 361 | } |
| 362 | 362 | |
| 363 | - if($this->routingEngine == self::ROUTING_ENGINE_FASTROUTE && !class_exists('\PPI\FastRoute\FastRouteWrapper')) { |
|
| 363 | + if ($this->routingEngine == self::ROUTING_ENGINE_FASTROUTE && !class_exists('\PPI\FastRoute\FastRouteWrapper')) { |
|
| 364 | 364 | $output->writeln("<comment>Laravel Router doesn't appear to be loaded. Run: <info>composer require ppi/fast-route</info></comment>"); |
| 365 | 365 | } |
| 366 | 366 | |