public function checkMethodAllowed($obj, $method) { if ($this ->isSandboxed()) { $this->policy ->checkMethodAllowed($obj, $method); } }