KMP PHP API Reference

Application.php

Kingdom Management Portal (KMP) - Main Application Class

This file contains the core Application class that bootstraps the entire KMP system. It handles middleware configuration, dependency injection, authentication setup, authorization configuration, and plugin registration.

The Application class serves as the central orchestrator for:

  • Middleware stack configuration (security, CSRF, routing, etc.)
  • Authentication and authorization service setup
  • Dependency injection container registration
  • Plugin system initialization
  • Core application settings management
  • Navigation system registration

Architecture Pattern: This follows the Application Service pattern with middleware composition, providing a single entry point for all HTTP requests and establishing the security, routing, and service boundaries.

Security Features:

  • CSRF protection with secure cookie settings
  • Comprehensive security headers (CSP, HSTS, XSS protection)
  • Session-based authentication with form fallback
  • Role-based authorization with policy resolution
  • Brute force protection for login attempts

Performance Considerations:

  • Table locator optimization for CLI vs web contexts
  • Asset middleware caching configuration
  • Service container for dependency injection efficiency
Tags
copyright

Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)

link

CakePHP(tm) Project

since
3.3.0
license

https://opensource.org/licenses/mit-license.php MIT License

author

KMP Development Team

version
25.01.11.a
see
BaseApplication

Base application class

see
AuthenticationServiceProviderInterface

Authentication provider

see
AuthorizationServiceProviderInterface

Authorization provider

Table of Contents

Classes

Application
Kingdom Management Portal Application Class

        
On this page

Search results