nacholibre/hitslogger-bundle

安装: 60

依赖: 0

建议者: 0

安全: 0

星星: 0

关注者: 2

分支: 0

开放问题: 0

类型:symfony-bundle

0.1.13 2017-10-10 08:37 UTC

This package is not auto-updated.

Last update: 2024-09-14 20:14:50 UTC


README

安装

步骤 1 - 安装所需的 composer 模块

composer require nacholibre/hitslogger-bundle

步骤 2 - 在 AppKernel.php 中添加模块

<?php
// app/AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new nacholibre\HitsLoggerBundle\nacholibreHitsLoggerBundle(),
        );

        // ...
    }

    // ...
}

步骤 3 - 注册包路由

# app/config/routing.yml

nacholibre_hits_logger:
    resource: "@nacholibreHitsLoggerBundle/Controller/"
    type:     annotation
    prefix:   /cpanel/hits_logger

步骤 4 - 配置你的映射

# app/config/config.yml

nacholibre_hits_logger:
    history_count: 50
    redis_service_name: "@snc_redis.default"