multihanded/overrider
最新稳定版本:1.0.0
Composer 安装命令:
composer require multihanded/overrider
包简介
The CLI utility for overriding classes from vendor by namespace.
README 文档
README
The utility is designed for convenient redefinition of classes from the vendor by copying them to the overriden directory in the root of the project and adding them to the classmap, which ensures the priority of such classes over their originals in the autoloader. If the overriden directory does not exist, the utility will create it.
Usage:
php vendor/bin/overrider --namespace="Foo\Bar\Baz" [-r, --recursive]
--namespace Required, accepts the namespace of a class that must already be registered with the autoloader.
-r, --recursive Optional, generates directories for the overridden class in accordance with the PSR-0.
Make sure you are running the utility from the project root, the composer.json file is available, and the overridden class is already registered in the autoloader.
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-14