flowr / amulen-sync
Amulen 同步数据到 Flowr 的插件。
0.1.18
2017-07-20 19:48 UTC
Requires
- guzzlehttp/guzzle: ^6.2
README
Amulen 同步数据到 Flowr 的插件。
安装
使用 composer 安装需求
composer require flowr/amulen-sync
使用命令注册插件
php app/console amulen:plugin:register "Flowr\AmulenSyncBundle\FlowrAmulenSyncBundle"
更新数据库模式
php app/console doctrine:schema:update --force
配置
向用户模型中添加字段
// src/Amulen/UserBundle/Entity/User.php
/**
* @var string
*
* @ORM\Column(name="flowr_id", type="string", length=255, nullable=true)
*/
protected $flowrId;
/**
* @var string
*
* @ORM\Column(name="flowr_code", type="string", length=255, nullable=true)
*/
protected $flowrCode;
/**
* @var string
*
* @ORM\Column(name="flowr_synced", type="boolean")
*/
protected $flowrSynced;
/**
* @var boolean
*
* @ORM\Column(name="flowr_sync_enabled", type="boolean")
*/
protected $flowrSyncEnabled;
public function __construct()
{
parent::__construct();
$this->flowrSynced = false;
$this->flowrSyncEnabled = false;
}
别忘了添加获取器和设置器。
然后在管理员部分设置 Flowr 设置
- flowr_url (必需): http://demo2.myflowr.com
- flowr_username (必需): jaguero
- flowr_password (必需): 123456
- flowr_contact_source (推荐但可选): Test Kaka Hanga
- flowr_fields: firstname,lastname,email
- service_timeout: 10.0