mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-12 02:09:48 +01:00
Remove deprecated method className() for branch 2.2. (#19894)
This commit is contained in:
@@ -211,7 +211,7 @@ abstract class BaseDataProvider extends Component implements DataProviderInterfa
|
||||
public function setPagination($value)
|
||||
{
|
||||
if (is_array($value)) {
|
||||
$config = ['class' => Pagination::className()];
|
||||
$config = ['class' => Pagination::class];
|
||||
if ($this->id !== null) {
|
||||
$config['pageParam'] = $this->id . '-page';
|
||||
$config['pageSizeParam'] = $this->id . '-per-page';
|
||||
@@ -252,7 +252,7 @@ abstract class BaseDataProvider extends Component implements DataProviderInterfa
|
||||
public function setSort($value)
|
||||
{
|
||||
if (is_array($value)) {
|
||||
$config = ['class' => Sort::className()];
|
||||
$config = ['class' => Sort::class];
|
||||
if ($this->id !== null) {
|
||||
$config['sortParam'] = $this->id . '-sort';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user