Tsugi

Service
in package

AbstractYes

Base class for Tsugi services.

Parallel to Tsugi\Controllers\Tool, which is the base for controllers. Controllers declare routes. Services declare permissions. Tsugi.php assembles both. This is not Tsugi\Core\Tool.

permissions() is the first shared capability. A service that declares nothing inherits the empty list.

Table of Contents

Methods

permissions()  : array<string, array<string, mixed>>
Permission codes this service owns.

Methods

permissions()

Permission codes this service owns.

public static permissions() : array<string, array<string, mixed>>

Keys are stable permission identifiers. Values describe the permission for application screens. Unknown codes are denied later, when a grant is checked.

Return values
array<string, array<string, mixed>>

        
On this page

Search results