mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 14:46:19 +08:00 
			
		
		
		
	refactoring.
This commit is contained in:
		@ -1,14 +1,13 @@
 | 
				
			|||||||
<?php
 | 
					<?php
 | 
				
			||||||
// Set to false to disable debug mode
 | 
					// comment out the following line to disable debug mode
 | 
				
			||||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
 | 
					defined('YII_DEBUG') or define('YII_DEBUG', true);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$frameworkPath = __DIR__ . '/../../framework/';
 | 
					$frameworkPath = __DIR__ . '/../../framework';
 | 
				
			||||||
require($frameworkPath . 'Yii.php');
 | 
					
 | 
				
			||||||
 | 
					require($frameworkPath . '/Yii.php');
 | 
				
			||||||
 | 
					// Register Composer autoloader
 | 
				
			||||||
 | 
					@include($frameworkPath . '/vendor/autoload.php');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$config = require(__DIR__ . '/protected/config/main.php');
 | 
					$config = require(__DIR__ . '/protected/config/main.php');
 | 
				
			||||||
$application = new yii\web\Application($config);
 | 
					$application = new yii\web\Application($config);
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Register Composer autoloader
 | 
					 | 
				
			||||||
@include $frameworkPath . '/vendor/autoload.php';
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
$application->run();
 | 
					$application->run();
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user