Zend\Permissions\Acl\Acl::addResource
Adds a Resource having an identifier unique to the ACL
The $parent parameter may be a reference to, or the string identifier for, the existing Resource from which the newly added Resource will inherit.
Signature
public function addResource(ResourceInterface|string
$resource,
[ResourceInterface|string
$parent = null] )
Parameters
$resource
— object
$parent
— object
Returns
- Acl
- Provides a fluent interface