8000 GitHub - AppsDevTeam/nette-proxy: Integration of https://ocramius.github.io/ProxyManager into Nette Framework · GitHub
[go: up one dir, main page]

Skip to content

AppsDevTeam 8000 /nette-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lookyman/Nette/Proxy

Integration of Proxy Manager into Nette Framework.

Build Status Scrutinizer Code Quality Coverage Status Downloads Latest stable

Installation

Install

composer require lookyman/nette-proxy

Config

extensions: 
	proxy: Lookyman\Nette\Proxy\DI\ProxyExtension
	
proxy:
	proxyDir: %appDir%/../temp/proxies # this is the default value
	default: off # turn on to proxy everything

Usage

Tag services with lookyman.lazy and they get magically proxied.

services: 
	-
		class: MyHeavyService
		tags: [lookyman.lazy]

If you have proxy.default turned on and you don't want a particular service to be proxied, you can do it like this:

services: 
	-
		class: DontProxyMeService
		tags: [lookyman.lazy: off]

Proxying certain Nette services is automaticaly disabled due to known limitations.

Pre-generating proxies

Proxy generation causes I/O operations and uses a lot of reflection, so it is handy to have them pre-generated before the application starts. For this, install Kdyby/Console and run:

php www/index.php lookyman:nette-proxy:generate

About

Integration of https://ocramius.github.io/ProxyManager into Nette Framework

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

0