mouf/utils.action.action-interface 问题修复 & 功能扩展

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

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

mouf/utils.action.action-interface

Composer 安装命令:

composer require mouf/utils.action.action-interface

包简介

This package contains an interface used by many objects to say they can do stuff. Actually, they can perform one particular action and has been designed for that. The action performed is completely up to the implementer (sending a mail, storing a result in database, displaying something on the scree

README 文档

README

This package contains an interface used by many objects to declare they can perform an action. Objects implementing this interface can perform one particular action and have been designed for that. The action performed is completely up to the implementer (sending a mail, storing a result in database, displaying something on the screen...) The concept is very simple, and very powerful at the same time.

This is a very simple and very powerful system.

namespace Mouf\Utils\Action;

interface ActionInterface {
	/**
	 * Executes the action the object has been designed for.
	 * 
	 * @throws \Exception
	 */
	public function run();
}

Here are a few samples:

  • a class that sends one mail
  • a class that outputs some HTML
  • a class that displays an error if the user does not have the correct right
  • ...

Mouf package

This package is part of Mouf (http://mouf-php.com), an effort to ensure good developing practices by providing a graphical dependency injection framework.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-05-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固