mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +01:00
Throw instead of log for invalid properties
Summary: Continue work started at D3601. Test Plan: Commented declaration `AphrontController::$request`, saw exception. Brought it back, didn't see exception. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4233
This commit is contained in:
parent
4a81ae6d6d
commit
8816f08765
3 changed files with 4 additions and 12 deletions
|
@ -1361,6 +1361,7 @@ phutil_register_library_map(array(
|
||||||
'AphrontCalendarEventView' => 'AphrontView',
|
'AphrontCalendarEventView' => 'AphrontView',
|
||||||
'AphrontCalendarMonthView' => 'AphrontView',
|
'AphrontCalendarMonthView' => 'AphrontView',
|
||||||
'AphrontContextBarView' => 'AphrontView',
|
'AphrontContextBarView' => 'AphrontView',
|
||||||
|
'AphrontController' => 'Phobject',
|
||||||
'AphrontCrumbsView' => 'AphrontView',
|
'AphrontCrumbsView' => 'AphrontView',
|
||||||
'AphrontCursorPagerView' => 'AphrontView',
|
'AphrontCursorPagerView' => 'AphrontView',
|
||||||
'AphrontDefaultApplicationConfiguration' => 'AphrontApplicationConfiguration',
|
'AphrontDefaultApplicationConfiguration' => 'AphrontApplicationConfiguration',
|
||||||
|
@ -1422,6 +1423,7 @@ phutil_register_library_map(array(
|
||||||
'AphrontTokenizerTemplateView' => 'AphrontView',
|
'AphrontTokenizerTemplateView' => 'AphrontView',
|
||||||
'AphrontTypeaheadTemplateView' => 'AphrontView',
|
'AphrontTypeaheadTemplateView' => 'AphrontView',
|
||||||
'AphrontUsageException' => 'AphrontException',
|
'AphrontUsageException' => 'AphrontException',
|
||||||
|
'AphrontView' => 'Phobject',
|
||||||
'AphrontWebpageResponse' => 'AphrontHTMLResponse',
|
'AphrontWebpageResponse' => 'AphrontHTMLResponse',
|
||||||
'CelerityPhabricatorResourceController' => 'CelerityResourceController',
|
'CelerityPhabricatorResourceController' => 'CelerityResourceController',
|
||||||
'CelerityResourceController' => 'PhabricatorController',
|
'CelerityResourceController' => 'PhabricatorController',
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/**
|
/**
|
||||||
* @group aphront
|
* @group aphront
|
||||||
*/
|
*/
|
||||||
abstract class AphrontController {
|
abstract class AphrontController extends Phobject {
|
||||||
|
|
||||||
private $request;
|
private $request;
|
||||||
private $currentApplication;
|
private $currentApplication;
|
||||||
|
@ -45,9 +45,4 @@ abstract class AphrontController {
|
||||||
return $this->currentApplication;
|
return $this->currentApplication;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __set($name, $value) {
|
|
||||||
phlog('Wrote to undeclared property '.get_class($this).'::$'.$name.'.');
|
|
||||||
$this->$name = $value;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
abstract class AphrontView {
|
abstract class AphrontView extends Phobject {
|
||||||
|
|
||||||
protected $children = array();
|
protected $children = array();
|
||||||
|
|
||||||
|
@ -42,9 +42,4 @@ abstract class AphrontView {
|
||||||
|
|
||||||
abstract public function render();
|
abstract public function render();
|
||||||
|
|
||||||
public function __set($name, $value) {
|
|
||||||
phlog('Wrote to undeclared property '.get_class($this).'::$'.$name.'.');
|
|
||||||
$this->$name = $value;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue