opdavies/sculpin-content-generator-bundle 问题修复 & 功能扩展

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

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

opdavies/sculpin-content-generator-bundle

Composer 安装命令:

composer require opdavies/sculpin-content-generator-bundle

包简介

Provides new Sculpin commands for generating new content

关键字:

README 文档

README

Adds additional console commands to automate the creation of new content.

Installation

Downloading

Add add the bundle into your sculpin.json or composer.json file.

"require": {
    "opdavies/sculpin-content-generator-bundle": "^1.0"
}

Install it by running sculpin install or composer install.

Enabling

Now you can register the bundle within the SculpinKernel class. If you don’t have on, create one at app/config/SculpinKernel.php.

use Sculpin\Bundle\SculpinBundle\HttpKernel\AbstractKernel;

/**
 * Class SculpinKernel
 */
class SculpinKernel extends AbstractKernel
{
    /**
     * {@inheritdoc}
     */
    protected function getAdditionalSculpinBundles()
    {
        return [
            'Opdavies\Sculpin\Bundle\ContentGeneratorBundle\SculpinContentGeneratorBundle'
        ];
    }
}

Usage

With the bundle enabled, you can now see the additional commands by run the sculpin command. Currently, only content:new:post is added, which generates posts.

The next step for is to allow for the bundle to be extended and to allow for customised templates, and also the ability to add commands for other content types - or ideally load them automatically from sculpin_content_types.

Options

The available options are:

--title

The title of the post. This will be populated when the template is generated.

If empty, you will be required to enter a title interactively when executing the content:new:post command.

--filename

The name of the file to generate.

--extension

The file extension to use.

If empty, you will be required to enter a title interactively. A default filename will be provided based on the provided title and the current date.

Author

Oliver Davies - PHP Developer and Linux System Administrator.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固