Contribution:
YAPAF
Headline
Demonstrate Technology:YAPAF on top of Contribution:php by implementing logging
Motivation
YAPAF "Yet another PHP aspect framework" brings aspect-capabilities to Language:PHP, similar to Language:AspectJ. This contribution uses YAPAF to implement some logging-feature to Contribution:php realized via a YAPAF-aspect. The contribution is showing a possible use-case for using YAPAF.
Details
You can find the contribution at https://github.com/SchulteMarkus/101repo-php-yapaf/tree/master/contributions/php-yapaf
The aspects are defined at dir "aspects". As code is evolving, please have a look at the repository to see an YAPAF-aspect in action.
An an abstract, a YAPAF-aspect is a simple php-class including one or more methods. Using annotaions, each method defines it's possible JoinPoints:
class LoggingAspect {
/**
* @Call(class="ClassToLog", method="methodToLog")
*/
public function log() {
# apsect-body
}
}
There are no revisions for this page.
User contributions
User edits
Syntax for editing wiki
For you are available next options:will make text bold.
will make text italic.
will make text underlined.
will make text striked.
will allow you to paste code headline into the page.
will allow you to link into the page.
will allow you to paste code with syntax highlight into the page. You will need to define used programming language.
will allow you to paste image into the page.
is list with bullets.
is list with numbers.
will allow your to insert slideshare presentation into the page. You need to copy link to presentation and insert it as parameter in this tag.
will allow your to insert youtube video into the page. You need to copy link to youtube page with video and insert it as parameter in this tag.
will allow your to insert code snippets from @worker.
Syntax for editing wiki
For you are available next options:will make text bold.
will make text italic.
will make text underlined.
will make text striked.
will allow you to paste code headline into the page.
will allow you to link into the page.
will allow you to paste code with syntax highlight into the page. You will need to define used programming language.
will allow you to paste image into the page.
is list with bullets.
is list with numbers.
will allow your to insert slideshare presentation into the page. You need to copy link to presentation and insert it as parameter in this tag.
will allow your to insert youtube video into the page. You need to copy link to youtube page with video and insert it as parameter in this tag.
will allow your to insert code snippets from @worker.