yalesov/zf2-phing-task 问题修复 & 功能扩展

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

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

yalesov/zf2-phing-task

Composer 安装命令:

composer require yalesov/zf2-phing-task

包简介

A collection of Phing Tasks for a ZF2 app.

关键字:

README 文档

README

A collection of Phing Tasks for a ZF2 app.

Note: it will look for config/application.config.yml instead of config/application.config.php on bootstrap. If you use PHP config files, you'll have to change the code in each Task's main() method.

Installation

Composer:

{
  "require": {
    "yalesov/zf2-phing-task": "2.*"
  }
}

Phing is not bundled with this package.

You can install it through Composer and use the CLI at vendor/bin/phing:

{
  "require": {
    "phing/phing": "*"
  }
}

or through PEAR and use the CLI at phing:

$ pear channel-discover pear.phing.info
$ pear install [--alldeps] phing/phing

Usage

You must initialize an instance of your Zf2 application through ZfTask before using any of the remaining Tasks.

ZfTask

Bootstrap the ZF2 application using the file foo/bootstrap.php. The bootstrap file must return an instance of Zend\Mvc\Application.

<project>
  <target>
    <includepath classpath="vendor/yalesov/zf2-phing-task/src/task" />
    <taskdef name="zf" classname="ZfTask" />
    <zf bootstrap="foo/bootstrap.php" />
  </target>
</project>

foo/bootstrap.php:

/* do some bootstrap */
$application = Zend\Mvc\Application::init(/* config array */);
return $application;

DoctrineEntityTask

Generate entities for the EntityManager doctrine.entitymanager.orm_default, base directory at foo/src, with filter Foo\Entity.

<project>
  <target>
    <includepath classpath="vendor/yalesov/zf2-phing-task/src/task" />
    <taskdef name="d-entity" classname="DoctrineEntityTask" />
    <d-entity em="doctrine.entitymanager.orm_default" filter="Foo\Entity" output="foo/src" />
  </target>
</project>

DoctrineRepoTask

Generate repositories for the EntityManager doctrine.entitymanager.orm_default, base directory at foo/src, with filter Foo\Entity.

<project>
  <target>
    <includepath classpath="vendor/yalesov/zf2-phing-task/src/task" />
    <taskdef name="d-repo" classname="DoctrineRepoTask" />
    <d-repo em="doctrine.entitymanager.orm_default" filter="Foo\Entity" output="foo/src" />
  </target>
</project>

DoctrineProxyTask

Generate proxies for the EntityManager doctrine.entitymanager.orm_default, at directory foo/cache/proxy, with filter Foo\Entity.

<project>
  <target>
    <includepath classpath="vendor/yalesov/zf2-phing-task/src/task" />
    <taskdef name="d-proxy" classname="DoctrineProxyTask" />
    <d-proxy em="doctrine.entitymanager.orm_default" filter="Foo\Entity" output="foo/cache/proxy" />
  </target>
</project>

DoctrineUpdateTask

Update database schema for the EntityManager doctrine.entitymanager.orm_default.

<project>
  <target>
    <includepath classpath="vendor/yalesov/zf2-phing-task/src/task" />
    <taskdef name="d-update" classname="DoctrineUpdateTask" />
    <d-update em="doctrine.entitymanager.orm_default" />
  </target>
</project>

DoctrineDropTask

Drop all database tables from the connection of the EntityManager doctrine.entitymanager.orm_default.

This Task differs from Doctrine CLI's behavior. It drops ALL tables, not just those found in the metadata mapping files.

<project>
  <target>
    <includepath classpath="vendor/yalesov/zf2-phing-task/src/task" />
    <taskdef name="d-drop" classname="DoctrineDropTask" />
    <d-drop em="doctrine.entitymanager.orm_default" />
  </target>
</project>

TwigTask

Load the Twig template foo/bar.

<project>
  <target>
    <includepath classpath="vendor/yalesov/zf2-phing-task/src/task" />
    <taskdef name="twig" classname="TwigTask" />
    <twig file="foo/bar" />
  </target>
</project>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: ISC
  • 更新时间: 2016-07-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固