定制 aboutcoders/process-control-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

aboutcoders/process-control-bundle

最新稳定版本:1.3.0

Composer 安装命令:

composer require aboutcoders/process-control-bundle

包简介

A symfony bundle that provides process control

README 文档

README

A symfony bundle that provides process control.

Build Status: Build Status

Installation

Add the AbcProcessControlBundle to your composer.json file

{
    "require": {
        "aboutcoders/process-control-bundle": "~1.0"
    }
}

Then include the bundle in the AppKernel.php class

public function registerBundles()
{
    $bundles = array(
        // ...
        new Abc\Bundle\ProcessControlBundle\AbcProcessControlBundle(),
        // ...
    );
}

Usage

The AbcProcessControlBundle registers a service with the name abc.process_control.controller in the service container. This service is by default initialized with a PCNTL implementation, that listents to the SIGTERM event and thus indicates to exist, when this signal was sent.

    $controller = $container->get('abc.process_control.controller');
    
    if($controller->doExit()){
        // true if SIGTERM was sent
    }

Configuration

Registration of the service abc.process_control.controller is enabled by default. You can disable that with the following configuration:

abc_process_control:
    register_controller: false

Note: When registration is disabled the service abc.process_control.controller does not exist within the service container.

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固