artack/symfony-ohdear-command 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

artack/symfony-ohdear-command

最新稳定版本:1.1.0

Composer 安装命令:

composer require artack/symfony-ohdear-command

包简介

Provides out of the box functionality for Oh Dear Scheduled tasks.

README 文档

README

Oh Dear Symfony Abscract Command

Latest Release MIT License Total Downloads

Developed by artack in Zurich, Switzerland.

Features

  • Provides out of the box functionality for Scheduled tasks. That includes:
    • Consumed memory of the command
    • Runtime of the command
    • Exit-Code of the command
    • Failure Message in case of an exception

Installation

You can install this color library through Composer:

$ composer require artack/symfony-ohdear-command

Usage

Creating a Symfony Command extending the abstract OhDearCommand class:

class YourNewSymfonyCommand extends OhDearCommand

If you configure your Command with the `` method make sure you run the parent method as well.

protected function configure(): void
{
    parent::configure();

    # following your own configurations
}

Instead of the execute method you need to use doExecute for the actual implementation of your command. The rest of the signature of that method is identical to the execute method.

protected function doExecute(InputInterface $input, OutputInterface $output): int {...}

Now you can run the command with the option --ohdear-uuid and the uuid given by Oh Dear as a value. The uuid is part of the "ping URL" shown by Oh Dear.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固