Skip to content

Commit

Permalink
Merge pull request #450 from hadashiA/ku/1.12.0
Browse files Browse the repository at this point in the history
1.12.0
  • Loading branch information
hadashiA committed Nov 24, 2022
2 parents 5bb576f + 46494be commit 9fff851
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -52,7 +52,7 @@ Visit [vcontainer.hadashikick.jp](https://vcontainer.hadashikick.jp) to view the
1. Navigate to your project's Packages folder and open the manifest.json file.
2. Add this line below the "dependencies": { line
- ```json title="Packages/manifest.json"
"jp.hadashikick.vcontainer": "https://github.com/hadashiA/VContainer.git?path=VContainer/Assets/VContainer#1.11.1",
"jp.hadashikick.vcontainer": "https://github.com/hadashiA/VContainer.git?path=VContainer/Assets/VContainer#1.12.0",
```
3. UPM should now install the package.

Expand Down
2 changes: 1 addition & 1 deletion VContainer/Assets/VContainer/package.json
@@ -1,7 +1,7 @@
{
"name": "jp.hadashikick.vcontainer",
"displayName": "VContainer",
"version": "1.11.1",
"version": "1.12.0",
"unity": "2018.4",
"description": "The extra fast DI (Dependency Injection) for Unity",
"keywords": ["DI", "Dependency Injection", "DI Container"],
Expand Down
4 changes: 2 additions & 2 deletions website/docs/getting-started/installation.mdx
Expand Up @@ -32,7 +32,7 @@ If you don't want to use `openupm-cli` (or if you're hosting VContainer on an al
}
],
"dependencies": {
"jp.hadashikick.vcontainer": "1.11.1"
"jp.hadashikick.vcontainer": "1.12.0"
}
}
```
Expand All @@ -42,7 +42,7 @@ If you don't want to use `openupm-cli` (or if you're hosting VContainer on an al
Navigate to your project's `Packages` folder and open the `manifest.json` file. Then add this package somewhere in the `dependencies` block:

```json title="Packages/manifest.json"
"jp.hadashikick.vcontainer": "https://github.com/hadashiA/VContainer.git?path=VContainer/Assets/VContainer#1.11.1",
"jp.hadashikick.vcontainer": "https://github.com/hadashiA/VContainer.git?path=VContainer/Assets/VContainer#1.12.0",
```

UPM should now install the package. This is useful if you're maintaining a fork of VContainer for your own project but don't want to set up a private registry.
Expand Down
2 changes: 1 addition & 1 deletion website/docusaurus.config.js
Expand Up @@ -50,7 +50,7 @@ module.exports = {
},
{
href: 'https://github.com/hadashiA/VContainer/releases',
label: 'v1.11.1',
label: 'v1.12.0',
position: 'right',
},
{
Expand Down
Expand Up @@ -4,15 +4,15 @@ title: DIって何 ?

DI(=Dependency Injection) は、オブジェクト指向プログラミングにおける一般的なテクニック/パターンのことです。

あるクラスのコードの中から「委譲先のオブジェクトがどこからやってくるのか?」という情報を取り除き、クラスたちと、それらの関係を結びつける設定とを分けてしまおう、というのが主なコンセプトです。
あるクラスのコードの中から「委譲先のオブジェクトがどこからやってくるのか?」という情報を取り除き、クラスたちとそれらの関係を結びつける設定とを分けてしまおう、というのが主なコンセプトです。

DIで参照関係を組み立てると、アプリケーションのコードを変更せずともクラス同士の依存関係をつなぎかえることができるので、テスタビリティやある種のメンテナンス性が改善する... とかとか一般的には言われています。

……そんな教科書的な話の全てがクライアントサイドでも強いメリットを持つとも限りませんが、参照関係を結びつけるやりかたに一貫したスタイルを持ち込むことにある種の快適さがあることは確かです。

:::note
C# では、サーバやコンソールアプリケーションを書くための 設定・ロギング・などなどを整備する標準的な仕組み [Generic Host](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/generic-host?view=aspnetcore-5.0) がありますが、これはDIをベースにしたフレームワークとしてデザインされてます。
.NET Core/.NET 5以降、サーバのフレームワークとしてデファクトスタンダードといえる [ASP.NET Core](https://docs.microsoft.com/en-us/aspnet/core/?view=aspnetcore-5.0) もまた、Generic Host を利用したDIベースのスタイルです。
.NET Core/.NET 以降、サーバのフレームワークとしてデファクトスタンダードといえる [ASP.NET Core](https://docs.microsoft.com/en-us/aspnet/core/?view=aspnetcore-5.0) もまた、Generic Host を利用したDIベースのスタイルです。

Generic Host をはじめとする Mircosoft.Extensions.* の名前を冠したパッケージは、 [dotnet/runtime](https://github.com/dotnet/runtime) リポジトリ内で管理されており、
.NET環境やサーバサイドでは標準的な位置付けです。[Microsoft.Extensions.DependencyInjection](https://www.nuget.org/packages/Microsoft.Extensions.DependencyInjection) は、DIの基本的な機能を提供している他、DIのインターフェイスを標準化して、実装を他のライブラリと置き換える、といった仕組みも持っています。
Expand Down
Expand Up @@ -9,7 +9,7 @@ title: インストール
1. プロジェクトの `Packages/manifest.json` ファイルを開く。
2. `"dependencies": {` 行の下に以下を追記。
- ```json title="Packages/manifest.json"
"jp.hadashikick.vcontainer": "https://github.com/hadashiA/VContainer.git?path=VContainer/Assets/VContainer#1.11.1",
"jp.hadashikick.vcontainer": "https://github.com/hadashiA/VContainer.git?path=VContainer/Assets/VContainer#1.12.0",
```
3. Unityでプロジェクトをリフレッシュすると、UPMがパッケージをインストールしてくれます。

Expand Down

1 comment on commit 9fff851

@vercel
Copy link

@vercel vercel bot commented on 9fff851 Nov 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.