Centum\Access

The Access component simplifies access control management for your application.

You can allow or deny users (or groups of users) the privilege to perform specific activities. Both activities and users/groups are identified by simple string identifiers for ease of use.

Constructor

Centum\Access\Access(
    bool $default = Centum\Access\Access::ALLOW
);
  • $default: Sets the default access policy (ALLOW or DENY) for activities not explicitly configured.

Centum\Access\Access implements Centum\Interfaces\Access\AccessInterface.

Constants

  • Centum\Access\Access::ALLOW — Allow access
  • Centum\Access\Access::DENY — Deny access

Table of contents