-
-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Future add data source #489
Open
evgenybukharev
wants to merge
31
commits into
yiisoft:master
Choose a base branch
from
evgenybukharev:future_add_data_source
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 30 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
fe7b7fc
Future add data source (#1)
evgenybukharev c95f6cc
add data storage
evgenybukharev d7a8ed1
add data storage
evgenybukharev 593157b
add data storage
evgenybukharev e8a6dfb
codestyle fix
evgenybukharev f1480b0
restore
evgenybukharev d946f93
Merge remote-tracking branch 'yiisoft/master'
evgenybukharev 8c2d360
fix
evgenybukharev f464387
fix
evgenybukharev 4af6b3b
fix
evgenybukharev abbf63b
fix
evgenybukharev 8215da0
Merge remote-tracking branch 'origin/master' into future_add_data_source
evgenybukharev 5516465
add yii\helpers\IpHelper
evgenybukharev ae8afbf
fix syntax error, unexpected 'class' (T_CLASS), expecting identifier …
evgenybukharev 7ecfedc
fix syntax error, unexpected 'class' (T_CLASS), expecting identifier …
evgenybukharev f6c8f54
fix syntax error, unexpected 'class' (T_CLASS), expecting identifier …
evgenybukharev 36a7605
add data storage info to CHANGELOG and README
evgenybukharev 274a9d6
recover merge bugs
evgenybukharev a4c1775
codestyle
evgenybukharev 6ca168f
recover merge bugs
evgenybukharev d259c64
add Instance::ensure
evgenybukharev 6ea0f29
refactor if/else
evgenybukharev 9946fa2
add Instance::ensure
evgenybukharev 61b3ff0
make CacheDataStorage properties
evgenybukharev 309ddf7
Update CHANGELOG.md
samdark 0d8759b
Merge remote-tracking branch 'yiisoft/master'
evgenybukharev 72488bc
Fix isset data exceptions
evgenybukharev 98eb846
Merge branch 'master' into future_add_data_source
evgenybukharev 611eed6
Merge branch 'master' into future_add_data_source
samdark cdb69db
Update CHANGELOG.md
samdark e7d9eaf
Update CHANGELOG.md
samdark File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -10,19 +10,22 @@ | |||||
use Yii; | ||||||
use yii\base\Application; | ||||||
use yii\base\BootstrapInterface; | ||||||
use yii\helpers\Html; | ||||||
use yii\helpers\IpHelper; | ||||||
use yii\base\InvalidConfigException; | ||||||
use yii\debug\components\data\DataStorage; | ||||||
use yii\di\Instance; | ||||||
use yii\helpers\Json; | ||||||
use yii\helpers\Url; | ||||||
use yii\web\ForbiddenHttpException; | ||||||
use yii\helpers\IpHelper; | ||||||
use yii\web\Response; | ||||||
use yii\helpers\Html; | ||||||
use yii\helpers\Url; | ||||||
use yii\web\View; | ||||||
use yii\web\ForbiddenHttpException; | ||||||
|
||||||
/** | ||||||
* The Yii Debug Module provides the debug toolbar and debugger | ||||||
* | ||||||
* @author Qiang Xue <qiang.xue@gmail.com> | ||||||
* @since 2.0 | ||||||
* @since 2.0 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
*/ | ||||||
class Module extends \yii\base\Module implements BootstrapInterface | ||||||
{ | ||||||
|
@@ -76,30 +79,20 @@ class Module extends \yii\base\Module implements BootstrapInterface | |||||
* @since 2.0.7 | ||||||
*/ | ||||||
public $defaultPanel = 'log'; | ||||||
|
||||||
/** | ||||||
* @var string the directory storing the debugger data files. This can be specified using a path alias. | ||||||
*/ | ||||||
public $dataPath = '@runtime/debug'; | ||||||
/** | ||||||
* @var int the permission to be set for newly created debugger data files. | ||||||
* This value will be used by PHP [[chmod()]] function. No umask will be applied. | ||||||
* If not set, the permission will be determined by the current environment. | ||||||
* @since 2.0.6 | ||||||
*/ | ||||||
public $fileMode; | ||||||
/** | ||||||
* @var int the permission to be set for newly created directories. | ||||||
* This value will be used by PHP [[chmod()]] function. No umask will be applied. | ||||||
* Defaults to 0775, meaning the directory is read-writable by owner and group, | ||||||
* but read-only for other users. | ||||||
* @since 2.0.6 | ||||||
* @var DataStorage | ||||||
*/ | ||||||
public $dirMode = 0775; | ||||||
private $dataStorage; | ||||||
|
||||||
/** | ||||||
* @var int the maximum number of debug data files to keep. If there are more files generated, | ||||||
* the oldest ones will be removed. | ||||||
* Config options by DataStorage | ||||||
* @var string[] | ||||||
*/ | ||||||
public $historySize = 50; | ||||||
public $dataStorageConfig = [ | ||||||
'class' => 'yii\debug\components\data\FileDataStorage', | ||||||
]; | ||||||
|
||||||
/** | ||||||
* @var int the debug bar default height, as a percentage of the total screen height | ||||||
* @since 2.1.1 | ||||||
|
@@ -117,6 +110,7 @@ class Module extends \yii\base\Module implements BootstrapInterface | |||||
* You may want to enable the debug logs if you want to investigate how the debug module itself works. | ||||||
*/ | ||||||
public $enableDebugLogs = false; | ||||||
|
||||||
/** | ||||||
* @var bool whether to disable IP address restriction warning triggered by checkAccess function | ||||||
* @since 2.0.14 | ||||||
|
@@ -226,7 +220,8 @@ public static function setYiiLogo($logo) | |||||
public function init() | ||||||
{ | ||||||
parent::init(); | ||||||
$this->dataPath = Yii::getAlias($this->dataPath); | ||||||
|
||||||
$this->dataStorage = Instance::ensure($this->dataStorageConfig + ['module' => $this],'yii\debug\components\data\DataStorage'); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
$this->initPanels(); | ||||||
} | ||||||
|
@@ -490,6 +485,14 @@ protected function corePanels() | |||||
return $corePanels; | ||||||
} | ||||||
|
||||||
/** | ||||||
* @return DataStorage | ||||||
*/ | ||||||
public function getDataStorage() | ||||||
{ | ||||||
return $this->dataStorage; | ||||||
} | ||||||
|
||||||
/** | ||||||
* {@inheritdoc} | ||||||
* @since 2.0.7 | ||||||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.