我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在Zend Framework 2中切换Service Locator和DI Container?

Zend Framework 2 provides the developer with both -- a Dependency Injection Container and a Service Locator implementation. I've always used the Service Locator. Now I would like to try the Dependency Injector, but don't see, how to switch to it. There is no bootstrap file anymore like in ZF1 and I have also not found anything about it in the configs. How does it work?

近期文章

  • 使用PHP动态创建和填充输入无线电
  • 在后端magento中编辑订单时价格不正确
  • 如果语句检查数据库中的哪个表应该存储数据
  • 在doctrine(已加入)类表继承中查询根实体的字段
  • Solr建议者自动完成
  • Woocommerce确认预订电子邮件以显示客户信息
  • Symfony2 LexikFormFilterBundle:filter_entity的空值导致表单错误
  • 在简单示例中,Duplicate Key不会触发复合键的PDO异常抛出
  • Laravel 5.0命令
  • 用于pt_BR的php pspell不起作用
  • 将子域路由添加到Symfony时,FileLoaderImportCircularReferenceException
  • Ajax按钮无法正常工作
  • 如何为我的域名设置批评
  • mysql查询结果不如预期的prestashop
  • 查询字符串参数丢失
  • 将数据返回到数据库MYSQL的PHP​​页面
  • PHP - Amazon Elastic Beanstalk - 获取私有IP地址
  • 数据目标在bootgrid插件中不起作用
  • 初始化多维数组
  • 使用Facebook Graph Api获取数据

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华