承接 aboutcoders/resource-lock-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aboutcoders/resource-lock-bundle

最新稳定版本:0.2.0

Composer 安装命令:

composer require aboutcoders/resource-lock-bundle

包简介

Simple resource locking

README 文档

README

A Symfony bundle that provides resource lock implementation

Build Status

Installation

Add the AbcResourceLockBundle to your composer.json file

{
    "require": {
        "aboutcoders/resource-lock-bundle": "dev-master"
    }
}

Include the bundle in the AppKernel.php class

public function registerBundles()
{
    $bundles = array(
        // ...
        new Abc\Bundle\ResourceLockBundle\AbcResourceLockBundle(),
    );

    return $bundles;
}

Configuration

Configure the bundle

# app/config/config.yml
abc_resource_lock:
  db_driver: orm

You can define custom managers with a custom prefix within the managers section

# app/config/config.yml
abc_resource_lock:
  db_driver: orm
  managers:
    my_manager:
        prefix: my_prefix
    another_manager:
        prefix: another_prefix

Usage

Use Lock manager to get, set or check locks:

$container->get('abc.resource_lock.lock_manager');

To retrieve the custom manager from the service container you have to specify it by its name:

$container->get('abc.resource_lock.lock_manager_my_manager');

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 23.22k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-04-04