nitra / e-commerce-site-buyerbundle
此包已被废弃,不再维护。未建议替代包。
买家套餐
v1.0
2014-09-09 09:25 UTC
This package is auto-updated.
Last update: 2018-04-27 10:39:20 UTC
README
描述
买家套餐 - 包含买家自文档,个人控制台控制器和用于更新买家最后访问网站日期的类(从商店套餐中的监听器自动调用)。
连接
要将此模块连接到项目,需要在项目中执行以下操作
- composer.json:
{
...
"require": {
...
"nitra/e-commerce-site-buyerbundle": "dev-master",
...
}
...
}
- app/AppKernel.php:
<?php
//...
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
//...
public function registerBundles()
{
//...
$bundles = array(
//...
new Nitra\BuyerBundle\NitraBuyerBundle(),
//...
);
//...
return $bundles;
}
//...
}
配置
parameters.yml
- 买家最后访问日期更新频率 * user_activity_update_interval: 1 - 默认为1分钟,如果为0则不更新