From 9ebd3ee43179976ed8271c0ca292055090e24240 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Wed, 11 Jan 2023 23:15:34 +0100 Subject: [PATCH] adjust version informations --- CHANGELOG.md | 13 +++++++++++++ LICENSE.md | 2 +- README.en.md | 14 ++++++++++++++ README.md | 14 ++++++++++++++ composer.json | 2 +- 5 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..4d1ff87 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,13 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased](https://git.d3data.de/D3Public/DIContainer/compare/1.0.0.0...rel_1.x) + +## [1.0.0.0](https://git.d3data.de/D3Public/DIContainer/releases/tag/1.0.0.0) - 2023-01-10 +### Added +- add definition registry +- add container handler +- can get uncompiled container diff --git a/LICENSE.md b/LICENSE.md index df524f8..f4126a1 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 D3 Data Development (Inh. Thomas Dartsch) +Copyright (c) 2023 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 diff --git a/README.en.md b/README.en.md index 0c1afd7..fea80d8 100644 --- a/README.en.md +++ b/README.en.md @@ -15,6 +15,20 @@ Open a command line interface and navigate to the shop root directory (parent of php composer require d3/oxid-dic-handler:^1.0 ``` +## Usage + +To add your own definitions to the container, extend the class `D3\DIContainerHandler\definitionFileContainer` with the following call: + +``` +public function __construct() +{ + parent::__construct(); + $this->addYamlDefinitions('my/plugin/Config/services.yaml'); +} +``` + +Then empty the TMP folder. + ## Changelog See [CHANGELOG](CHANGELOG.md) for further informations. diff --git a/README.md b/README.md index 3786759..b631bf4 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,20 @@ Dieses Paket erfordert einen mit Composer installierten OXID eShop in einer in d php composer require d3/oxid-dic-handler:^1.0 ``` +## Verwendung + +Um eigene Defintionen dem Container hinzuzufügen, erweitern Sie die Klasse `D3\DIContainerHandler\definitionFileContainer`um folgenden Aufruf: + +``` +public function __construct() +{ + parent::__construct(); + $this->addYamlDefinitions('my/plugin/Config/services.yaml'); +} +``` + +Leeren Sie anschließend den TMP-Ordner. + ## Changelog Siehe [CHANGELOG](CHANGELOG.md) für weitere Informationen. diff --git a/composer.json b/composer.json index 565c5e3..f882e2f 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "oxid", "eShop", "services", - "bridges", + "dependency injection", "d3" ], "authors": [