Title: 组件tightly coupled · Issue #5 · phpwind/windframework · GitHub
Open Graph Title: 组件tightly coupled · Issue #5 · phpwind/windframework
X Title: 组件tightly coupled · Issue #5 · phpwind/windframework
Description: 所有组件使用Wind::import()加载文件,而非标准的require_once()。导致所有组件与class Wind tightly coupled。跟糟糕的是class Wind所在文件Wind.php是个流程文件(内有Wind::init()方法调用),因此所有组件与整个framework tightly coupled,无法剥离,离开此框架后就无法使用。 请参考Zend Framework,尽量减少组件间的依赖,这样在其它项目中可单独引入一个组件,而非整个框架。
Open Graph Description: 所有组件使用Wind::import()加载文件,而非标准的require_once()。导致所有组件与class Wind tightly coupled。跟糟糕的是class Wind所在文件Wind.php是个流程文件(内有Wind::init()方法调用),因此所有组件与整个framework tightly coupled,无法剥离,离开此框架后就无法使用。 请参考Zend Fra...
X Description: 所有组件使用Wind::import()加载文件,而非标准的require_once()。导致所有组件与class Wind tightly coupled。跟糟糕的是class Wind所在文件Wind.php是个流程文件(内有Wind::init()方法调用),因此所有组件与整个framework tightly coupled,无法剥离,离开此框架后就无法使用。 请参考Zend Fra...
Opengraph URL: https://github.com/phpwind/windframework/issues/5
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"组件tightly coupled","articleBody":"所有组件使用Wind::import()加载文件,而非标准的require_once()。导致所有组件与class Wind tightly coupled。跟糟糕的是class Wind所在文件Wind.php是个流程文件(内有Wind::init()方法调用),因此所有组件与整个framework tightly coupled,无法剥离,离开此框架后就无法使用。\n\n请参考Zend Framework,尽量减少组件间的依赖,这样在其它项目中可单独引入一个组件,而非整个框架。\n","author":{"url":"https://github.com/2ig2ag","@type":"Person","name":"2ig2ag"},"datePublished":"2012-03-30T07:38:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/5/windframework/issues/5"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:db3f485a-158a-ba63-7c5b-9bda74ff7ccc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBFE:F2FFF:19D2560:224A88A:6A5AD1B6 |
| html-safe-nonce | 7dbb719a7be1c575fca5eb823499b8de30d5339c2d169416fa48fd5542fece40 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkZFOkYyRkZGOjE5RDI1NjA6MjI0QTg4QTo2QTVBRDFCNiIsInZpc2l0b3JfaWQiOiI1NDk0NDQ5OTM3MjU2NzMxMDYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 972560ff71e439d206848d89fbe327644976794b5ee37835c9b79f006afcb9c3 |
| hovercard-subject-tag | issue:3893642 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/phpwind/windframework/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/39a6d9319b8058744cdeec6d9a275a21111dda4c1de452940426eb34533a1532/phpwind/windframework/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/39a6d9319b8058744cdeec6d9a275a21111dda4c1de452940426eb34533a1532/phpwind/windframework/issues/5 |
| og:image:alt | 所有组件使用Wind::import()加载文件,而非标准的require_once()。导致所有组件与class Wind tightly coupled。跟糟糕的是class Wind所在文件Wind.php是个流程文件(内有Wind::init()方法调用),因此所有组件与整个framework tightly coupled,无法剥离,离开此框架后就无法使用。 请参考Zend Fra... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 2ig2ag |
| hostname | github.com |
| expected-hostname | github.com |
| None | 887a0902ea4987c46dd44cbc73dfadecb93a29560d7519a576fcecd81716148c |
| turbo-cache-control | no-preview |
| go-import | github.com/phpwind/windframework git https://github.com/phpwind/windframework.git |
| octolytics-dimension-user_id | 1515683 |
| octolytics-dimension-user_login | phpwind |
| octolytics-dimension-repository_id | 3658876 |
| octolytics-dimension-repository_nwo | phpwind/windframework |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3658876 |
| octolytics-dimension-repository_network_root_nwo | phpwind/windframework |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2606513ce6b72f8b775db6a60283f9cf7d4d70a5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width