Recommend this page to a friend! |
Classes of Vitalij Mik | Lazy Before After Service Provider | README.md | Download |
|
DownloadLazyBeforeAfterServiceProvierA service Provider for Silex to call before/after methods automatically. UsageYour bootstrap may look like this
Now you can just add methods like "before", "after","before{MethodName}" and "after{MethodName}" without to specify it in your Router. This is the same like
But with the ability to do your checks in a "Base" Controller and extend from it. The Provider Call the methods in following Order:
|