koriym / dii Goto Github PK
View Code? Open in Web Editor NEWDependency Injection Container Plugin for Yii 1
License: MIT License
Dependency Injection Container Plugin for Yii 1
License: MIT License
https://github.com/koriym/dii/blob/master/src/Dii.php#L49 から参照しているAppModule
がソースコード上に存在しないためエラーとなっております。
エラーメッセージ
Class Koriym\Dii\Module\AppModule does not exist
デモの方には同じネームスペースでクラスが存在しているので、こちらをsrc/
配下に置く必要があると思われます。
https://github.com/koriym/dii/blob/master/demo/src/Module/AppModule.php
CConsoleCommand は CConsoleCommandRunner::createCommand でインスタンス化される。このメソッド中で CConsoleCommand を直接 new している箇所は下記の行のみです。
https://github.com/yiisoft/yii/blob/master/framework/console/CConsoleCommandRunner.php#L170
ここで Dii:createComponent によって初期化するように修正すれば、consoleアプリケーションにおいてもDiiを利用できる。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.