mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
getClassExtension -> asExtension (shorter syntax)
This commit is contained in:
parent
fb56fbfabd
commit
7beafebf7c
@ -55,13 +55,13 @@ class EditorPreferences extends Controller
|
||||
$this->vars['language'] = 'css';
|
||||
$this->vars['margin'] = 0;
|
||||
|
||||
$this->getClassExtension('Backend.Behaviors.FormController')->update();
|
||||
$this->asExtension('FormController')->update();
|
||||
$this->pageTitle = Lang::get('backend::lang.editor.menu_label');
|
||||
}
|
||||
|
||||
public function index_onSave()
|
||||
{
|
||||
return $this->getClassExtension('Backend.Behaviors.FormController')->update_onSave();
|
||||
return $this->asExtension('FormController')->update_onSave();
|
||||
}
|
||||
|
||||
public function formFindModelObject()
|
||||
|
@ -49,7 +49,7 @@ class Users extends Controller
|
||||
if ($context != 'myaccount' && $recordId == $this->user->id)
|
||||
return Redirect::to(Backend::url('backend/users/myaccount'));
|
||||
|
||||
return $this->getClassExtension('Backend.Behaviors.FormController')->update($recordId, $context);
|
||||
return $this->asExtension('FormController')->update($recordId, $context);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -68,7 +68,7 @@ class Users extends Controller
|
||||
*/
|
||||
public function myaccount_onSave()
|
||||
{
|
||||
$result = $this->getClassExtension('Backend.Behaviors.FormController')->update_onSave($this->user->id, 'myaccount');
|
||||
$result = $this->asExtension('FormController')->update_onSave($this->user->id, 'myaccount');
|
||||
|
||||
/*
|
||||
* If the password or login name has been updated, reauthenticate the user
|
||||
|
@ -48,7 +48,7 @@ class MailTemplates extends Controller
|
||||
/* @todo Remove line if year >= 2015 */ if (!\System\Models\MailLayout::whereCode('default')->count()) { \Eloquent::unguard(); with(new \System\Database\Seeds\SeedSetupMailLayouts)->run(); }
|
||||
|
||||
MailTemplate::syncAll();
|
||||
$this->getClassExtension('Backend.Behaviors.ListController')->index();
|
||||
$this->asExtension('ListController')->index();
|
||||
$this->bodyClass = 'compact-container';
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ class Updates extends Controller
|
||||
$this->vars['project_id'] = Parameters::get('system::project.id');
|
||||
$this->vars['project_name'] = Parameters::get('system::project.name');
|
||||
$this->vars['project_owner'] = Parameters::get('system::project.owner');
|
||||
return $this->getClassExtension('Backend.Behaviors.ListController')->index();
|
||||
return $this->asExtension('ListController')->index();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -69,7 +69,7 @@ class Updates extends Controller
|
||||
{
|
||||
$this->pageTitle = Lang::get('system::lang.plugins.manage');
|
||||
PluginManager::instance()->clearDisabledCache();
|
||||
return $this->getClassExtension('Backend.Behaviors.ListController')->index();
|
||||
return $this->asExtension('ListController')->index();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user