API / Minn\Admin / BundleController

BundleController final readonly class

Minn\Admin\BundleController · public/minn/src/Minn/Admin/BundleController.php · 45 lines

What the app bundle answers for: the user guide it carries, the translation offers (none: the engine polls no translation channel), and the two changelogs, Minn Admin's and the engine's, read from GitHub because a release carries neither.

Used by 1

Constants and properties

privatereadonly Minn\Admin\App $app

Promoted from the constructor.

privatereadonly Minn\Rest\Caller $caller

Promoted from the constructor.

privatereadonly Minn\Ops\Changelog $adminChangelog

Promoted from the constructor.

privatereadonly Minn\Ops\Changelog $engineChangelog

Promoted from the constructor.

Public

new__construct(Minn\Admin\App $app, Minn\Rest\Caller $caller, Minn\Ops\Changelog $adminChangelog, Minn\Ops\Changelog $engineChangelog)#
methodtranslations(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/translations (floor edit_posts)#

The translation offers; none on the engine.

methodchangelog(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/changelog (floor edit_posts)#

Minn Admin's changelog, released sections only, beside the bundle's version.

methodengineChangelog(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/engine-changelog (floor edit_posts)#

The engine's own changelog, kept in its repository and not in a release, shown beside the app's on Minn.

methodguide(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/guide (floor edit_posts)#

The app's bundled user guide.

Internals 1

Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.

privatebundled(string $relative): array#
@return array{version: string, markdown: string}