承接 componenta/interceptor-app 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

componenta/interceptor-app

Composer 安装命令:

composer require componenta/interceptor-app

包简介

Componenta application integration for interceptor cache compilation

README 文档

README

Application-level compile integration for componenta/interceptor. This package turns interceptor attributes into serializable descriptors that can be loaded by the runtime interceptor layer.

Use it during application cache builds. Runtime code that only invokes interceptors should depend on componenta/interceptor.

Installation

composer require componenta/interceptor-app

The package declares Componenta\Interceptor\App\ConfigProvider in extra.componenta.config-providers. When componenta/composer-plugin is installed, the provider is added to the generated provider list automatically.

Related Packages

Package Why it matters here
componenta/interceptor Executes interceptor chains and consumes compiled descriptors.
componenta/class-finder Finds classes and methods with interceptor attributes.
componenta/app Enables the compiler only when interceptor support is installed and bound.

What It Adds

The package provides Componenta\Interceptor\App\Compile\InterceptorMapCompiler.

The compiler scans discovered classes for:

  • #[Intercept] attributes on methods
  • attributes that implement interceptor contracts directly

It produces a descriptor map that can be passed to AttributeInterceptor from componenta/interceptor.

Development Mode

In development, interceptor metadata may be discovered from source classes while the application cache is being built. This keeps method-level interception declarative without forcing runtime packages to depend on class scanning.

Production Mode

In production, applications should load the compiled descriptor map. This avoids repeated reflection over methods and keeps interception setup deterministic.

The compiler should be enabled only when componenta/interceptor is installed and the attribute interceptor service is bound. Optional feature gating is handled by componenta/app.

Boundaries

componenta/interceptor-app does not execute interceptor chains. Callable contexts, chain execution, interceptor attributes, factories, and runtime dispatch belong to componenta/interceptor; this package owns only descriptor compilation.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固