/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/authorization/src
NameSizeModeActions
Command/-0755rm
Controller/-0755rm
Exception/-0755rm
Middleware/-0755rm
Policy/-0755rm
AuthorizationService.php53900644editdlrm
AuthorizationServiceInterface.php31590644editdlrm
AuthorizationServiceProviderInterface.php11400644editdlrm
Identity.php19140644editdlrm
IdentityDecorator.php55730644editdlrm
IdentityInterface.php22410644editdlrm
Plugin.php12970644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/authorization/src/IdentityDecorator.php (5573B)
authorization = $service; $this->identity = $identity; } /** * @inheritDoc */ public function can(string $action, $resource): bool { return $this->authorization->can($this, $action, $resource); } /** * @inheritDoc */ public function canResult(string $action, $resource): ResultInterface { return $this->authorization->canResult($this, $action, $resource); } /** * @inheritDoc */ public function applyScope(string $action, $resource) { return $this->authorization->applyScope($this, $action, $resource); } /** * @inheritDoc */ public function getOriginalData() { if ( $this->identity && !is_array($this->identity) && method_exists($this->identity, 'getOriginalData') ) { return $this->identity->getOriginalData(); } return $this->identity; } /** * Delegate unknown methods to decorated identity. * * @param string $method The method being invoked. * @param array $args The arguments for the method. * @return mixed */ public function __call(string $method, array $args) { if (!is_object($this->identity)) { throw new BadMethodCallException("Cannot call `{$method}`. Identity data is not an object."); } $call = [$this->identity, $method]; return $call(...$args); } /** * Delegate property access to decorated identity. * * @param string $property The property to read. * @return mixed */ public function __get(string $property) { return $this->identity->{$property}; } /** * Delegate property isset to decorated identity. * * @param string $property The property to read. * @return mixed */ public function __isset(string $property) { return isset($this->identity->{$property}); } /** * Whether a offset exists * * @link https://secure.php.net/manual/en/arrayaccess.offsetexists.php * @param mixed $offset Offset * @return bool */ public function offsetExists($offset): bool { return isset($this->identity[$offset]); } /** * Offset to retrieve * * @link https://secure.php.net/manual/en/arrayaccess.offsetget.php * @param mixed $offset Offset * @return mixed */ #[ReturnTypeWillChange] public function offsetGet($offset) { if (isset($this->identity[$offset])) { return $this->identity[$offset]; } return null; } /** * Offset to set * * @link https://secure.php.net/manual/en/arrayaccess.offsetset.php * @param mixed $offset The offset to assign the value to. * @param mixed $value Value * @return mixed * @psalm-suppress LessSpecificImplementedReturnType */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { return $this->identity[$offset] = $value; } /** * Offset to unset * * @link https://secure.php.net/manual/en/arrayaccess.offsetunset.php * @param mixed $offset Offset * @return void */ public function offsetUnset($offset): void { unset($this->identity[$offset]); } }