定制 radekdvorak/nette-proxy-service 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

radekdvorak/nette-proxy-service

最新稳定版本:0.0.1

Composer 安装命令:

composer require radekdvorak/nette-proxy-service

包简介

Lazy services for Nette Framework

关键字:

README 文档

README

#Nette Proxy Generator# This Nette Framework extension allows you to hide services in proxy classes. Seldom used yet still initialized services are hidden, eventual expensive object initiation is postponed. The real service class gets instantiated as soon as the proxy class property or method is accessed.

##Instructions##

  • Have composer install the source code
composer.phar require radekdvorak/nette-proxy-service:0.*
  • Enable the extension in your neon config
extensions:
	proxyService: NetteProxyService\DI\ProxyServiceExtension
  • Configure directory for proxy class cache
proxyService:
	cacheDir: some/directory
	# disable in production
	autogenerateProxyClasses: true
  • Tag selected services with proxyService.lazy (the prefix depends on the extension registration name)

  • Setup an autoloader for the cacheDir (see RobotLoader if you are not sure what to do)

##Notes:##

  • This extension is quite new therefore consider it a bit experimental

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-02-17