2017 © Pedro Peláez
 

library yii2-dependencies

Yii2 components for detach dependencies between modules

image

execut/yii2-dependencies

Yii2 components for detach dependencies between modules

  • Thursday, April 5, 2018
  • by eXeCUT
  • Repository
  • 1 Watchers
  • 0 Stars
  • 59 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 9 % Grown

The README.md

yii2-dependencies

Инструменты для изолирования связей модулей. Например, есть модуль пользователей и внутри него есть связь с другим модулем в виде получения:, (*1)

В модуль необходимо добавить поддержку плагинов с помощью харакстеристики PluginBehavior и вынести этот функционал в плагин через реализацию интерфейса модуля Plugin:, (*2)

<?php
namespace execut\users;

interface Plugin
{
    public function sendRecoveryMessage($user);
}
<?php
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());
    }
}

The Versions

05/04 2018

dev-master

9999999-dev https://github.com/execut/yii2-dependencies

Yii2 components for detach dependencies between modules

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

16/11 2017

0.1.4

0.1.4.0 https://github.com/execut/yii2-dependencies

Yii2 components for detach dependencies between modules

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

30/08 2017

0.1.3

0.1.3.0 https://github.com/execut/yii2-dependencies

Yii2 components for detach dependencies between modules

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

08/08 2017

0.1.2

0.1.2.0 https://github.com/execut/yii2-dependencies

Yii2 components for detach dependencies between modules

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

15/05 2017

0.1.1

0.1.1.0 https://github.com/execut/yii2-dependencies

Yii2 components for detach dependencies between modules

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields

14/05 2017

0.1.0

0.1.0.0 https://github.com/execut/yii2-dependencies

Yii2 components for detach dependencies between modules

  Sources   Download

Apache-2.0

The Requires

 

by Avatar eXeCUT

yii2 grid yii2 fields