Yii Framework Forum: Will Yii-2.0 have Aspect Oriented aproach? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Will Yii-2.0 have Aspect Oriented aproach? Rate Topic: -----

#1 User is offline   Ulten 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 52
  • Joined: 04-October 10

Posted 07 January 2011 - 07:35 AM

Main question will is will yii be supporting AOP in near future.

Advantages is that features such as Debugging,Loging,Security rules, and other stuff will be written more easily and modification and managing wont be very hard.

in disadvantages there is no adequate tools to manipulate Aspects and Advices for php, maybe in Gii implementing such will solve it.

and then... at last will be possible to use Behavior event in different aspects of features.

P.S.
it will be splendid if even not fully AOP specification implemented (and in some point its not need due other cool features of Yii-2.0).
0

#2 User is offline   yiqing95 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 586
  • Joined: 27-December 10
  • Location:china

Posted 17 August 2011 - 02:03 PM

View PostUlten, on 07 January 2011 - 07:35 AM, said:

Main question will is will yii be supporting AOP in near future.

Advantages is that features such as Debugging,Loging,Security rules, and other stuff will be written more easily and modification and managing wont be very hard.

in disadvantages there is no adequate tools to manipulate Aspects and Advices for php, maybe in Gii implementing such will solve it.

and then... at last will be possible to use Behavior event in different aspects of features.

P.S.
it will be splendid if even not fully AOP specification implemented (and in some point its not need due other cool features of Yii-2.0).


if yii support aop di that will be very cool 。 we need a framework to easy our life :D ; for some php developer they even know little oop knowledge , too many new tech introduced we don't know it's good to us or not. to be frank aop is still hard to learn for us . there are too many new concepts to us. etc aspect, advice ,cross cutting ,joinpoint ..... even we learn these concepts ,how to realize it in php is still a problem , and the performance will be a problem too . there are some main ways to realize aop ; proxy , static weave, dynamic weave , if use the proxy we may need introduce the container to yii ,there is no dynamic proxy class in php which generate a proxy class in runtime . if the zend engine support the dynamic weaving it will be better . the static way will modify the php source code by weaving the aspect to class . not sure if there exists such tools.

any way there are some php frameworks support the aop like: Ding ,typo3, workingtitle ...
some project you can find in google code :http://code.google.com/p/php-aop/people/detail?u=@WBRfQFJQAhRFWAN9
some article : http://www.slideshar...ramming-for-php
http://dsheiko.com/w...lopment-and-php
0

#3 User is offline   grigori 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 41
  • Joined: 06-February 11

Posted 24 August 2011 - 10:57 AM

AOP is not really possible in PHP until it supports a real fcgi.

The features may look great in a theory, but you need to take into account that it needs a complex object structure residing in RAM, which requires an application server.
0

#4 User is offline   Lisachenko Alexander 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 13-February 13

Posted 13 February 2013 - 05:19 AM

I'm happy to announce that AOP is available for PHP now!

There is a pure PHP library that you can use for AOP with Yii framework. It is available at github.com/lisachenko/go-aop-php.
You can also have a look at the demo for Yii application: github.com/lisachenko/yii-aspect (just clone it and run in the browser)
0

#5 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,339
  • Joined: 17-January 09
  • Location:Russia

Posted 13 February 2013 - 09:20 AM

It's very impressive and good to have as an extension or recipe but I don't think it should be included into the core.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#6 User is offline   Lisachenko Alexander 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 13-February 13

Posted 13 February 2013 - 01:33 PM

View Postsamdark, on 13 February 2013 - 09:20 AM, said:

It's very impressive and good to have as an extension or recipe but I don't think it should be included into the core.


Agree with you that AOP shouldn't be in the core. Yii is simple, fast and reliable framework, whereas AOP is a new technology for PHP and it's quite difficult to understand how to use it properly. However, as an extension for common use cases in application (logging, caching, transaction management, etc)- why not?
0

#7 User is offline   Fan_Ye 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 08-July 11

Posted 19 March 2013 - 09:07 PM

View PostLisachenko Alexander, on 13 February 2013 - 05:19 AM, said:

I'm happy to announce that AOP is available for PHP now!

There is a pure PHP library that you can use for AOP with Yii framework. It is available at github.com/lisachenko/go-aop-php.
You can also have a look at the demo for Yii application: github.com/lisachenko/yii-aspect (just clone it and run in the browser)

yeah,now that AOP is available for php extension by fcrosfly in github:https://github.com/baixing/AOP
0

#8 User is offline   yiqing95 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 586
  • Joined: 27-December 10
  • Location:china

Posted 20 March 2013 - 06:23 AM

View PostFan_Ye, on 19 March 2013 - 09:07 PM, said:

yeah,now that AOP is available for php extension by fcrosfly in github:https://github.com/baixing/AOP

glad to see these :lol:
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users