d3/oxid-dic-handler

为不在 DIC 缓存中可靠列出 OXID 服务提供桥梁。

2.1.1.0 2024-08-30 11:26 UTC

This package is auto-updated.

Last update: 2024-08-30 11:29:14 UTC


README

deutsche Version english version

OXID eShop 依赖注入容器处理程序

允许在 OXID DI 服务之外轻松使用类容器。

安装

此包需要一个在 composer.json 中定义的版本安装的 OXID eShop。

打开命令行并导航到商店的根目录(source 和 vendor 的父目录)。执行以下命令。根据您的安装环境调整路径。

php composer require d3/oxid-dic-handler:^1.0

使用

为了向容器添加自己的定义,扩展 D3\DIContainerHandler\definitionFileContainer 类以包含以下调用

public function __construct()
{
    parent::__construct();
    $this->addYamlDefinitions('my/plugin/Config/services.yaml');
}

然后清空 TMP 目录。

变更日志

有关更多信息,请参阅 CHANGELOG

贡献

如果您有改进建议,请为此存储库创建一个分支并创建一个拉取请求。或者,您可以简单地创建一个问题。将项目添加到您的收藏中。非常感谢。

  • 创建项目分支
  • 创建功能分支(git checkout -b feature/AmazingFeature)
  • 提交您的更改(git commit -m 'Add some AmazingFeature')
  • 推送分支(git push origin feature/AmazingFeature)
  • 打开拉取请求

许可

(截止日期:2023年1月3日)

在 MIT 许可下分发。

Copyright (c) D3 Data Development (Inh. Thomas Dartsch)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

有关完整的版权和许可信息,请参阅随源代码一起分发的 LICENSE 文件。