thinframe / aop
It is a AOP extension for Symfony2 Dependency Injection Container
dev-master
2014-01-31 15:28 UTC
Requires
- php: >=5.4.0
- jms/cg: dev-master#0d8d8c7e964e0ee1b5743f23117a541873d9bfef
- thinframe/events: dev-master
- thinframe/foundation: dev-master
This package is not auto-updated.
Last update: 2024-12-16 15:28:57 UTC
README
##ThinFrame AOP
It is a AOP extension for Symfony2 Dependency Injection Container
##AOP ? It stands for Aspect-Oriented Programming. Check http://en.wikipedia.org/wiki/Aspect-oriented_programming
##What does it do ?
Basically, it allows you to add before/after hooks to methods without changing/affecting your existing code.
##How ?
Magic ? Not really ...
#####Install it: composer require thinframe/aop
#####Update it: composer update
#####Use it:
- Add the
thinframe.aop
tag to the desired service in di container. - Use
AopCompilerPass
- Expect for
thinframe.aop.before
andthinframe.aop.after
events.
or just use the AopApplication
##Copyright
- MIT License - Sorin Badea sorin.badea91@gmail.com