.. include:: /Includes.rst.txt .. _feature-1791169015: ================================================================== Feature: Packages register the actors of their access declarations ================================================================== Description =========== The actors of every access declaration were a closed list in the core, so a package with an actor of its own, such as the project managers of the projects package, had to change the core. A package now registers its derived actors with ``#[AsAccessActor(name: '…', package: '…')]`` on the class that decides them, and the vocabulary is the core actors plus the registered ones. Two packages registering one name, or a package registering a core actor, stop the container build. Routes, widgets, real-time topics, reports and the API contract are checked against this vocabulary; core operations may use core actors only. Impact ====== ``Access::VOCABULARY`` and ``WidgetDefinition::ACTORS`` are gone; ask ``ActorRegistry`` instead. A widget for an actor no installed package registers is refused when the widget registry is built. .. index:: package:adsum-core, package:adsum-projects