tsquare/classoverrider
Composer 安装命令:
composer require tsquare/classoverrider
包简介
Override PHP Classes using a path outside of your project, to make customizations that might otherwise be overwritten on an update.
README 文档
README
Allows the customization of code that would otherwise be unable to be modified without being possibly overwritten.
Specify an overrides directory outside of the projects codebase, where customized classes can be used instead.
The directory structure in the overrides path should emulate the overridden namespace, beyond the base namespace specified.
Example:
define('CLASSOVERRIDER_PATH', 'overrides_dir'); define('CLASSOVERRIDER_NS', 'Tsquare\\Overriding_Namespace'); define('CLASSOVERRIDER_BASE_NS', 'Tsquare\\Overridden_Namespace'); $foo = new MaybeOverride(Sample::class, 'arg1', 'arg2');
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-10-08