PHP code example of execut / yii2-dependencies
1. Go to this page and download the library: Download execut/yii2-dependencies library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
execut / yii2-dependencies example snippets
namespace execut\users;
interface Plugin
{
public function sendRecoveryMessage($user);
}
namespace execut\users;
use execut\dependencies\PluginBehavior;
use execut\users\Plugin;
/**
* Class Module
*
* @mixin PluginBehavior
* @package execut\userTags
*/
class Module extends \yii\base\Module implements Plugin
{
public function behaviors()
{
return [
'plugin' => [
'class' => PluginBehavior::class,
'pluginInterface' => Plugin::class,
],
];
}
public function sendRecoveryMessage($user) {
return $this->getPluginsResults(__FUNCTION__, false, func_get_args());
}
}