-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathIWebServiceProvider.php
32 lines (29 loc) · 1.01 KB
/
IWebServiceProvider.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* @link https://github.com/borodulin/yii2-services
* @license https://github.com/borodulin/yii2-services/blob/master/LICENSE.md
*/
namespace conquer\services;
/**
* IWebServiceProvider interface may be implemented by Web service provider classes.
*
* If this interface is implemented, the provider instance will be able
* to intercept the remote method invocation (e.g. for logging or authentication purpose).
* @author Qiang Xue <[email protected]>
* @package system.base
* @since 1.0
*/
interface IWebServiceProvider
{
/**
* This method is invoked before the requested remote method is invoked.
* @param WebService $service the currently requested Web service.
* @return boolean whether the remote method should be executed.
*/
public function beforeWebMethod($service);
/**
* This method is invoked after the requested remote method is invoked.
* @param WebService $service the currently requested Web service.
*/
public function afterWebMethod($service);
}