ezsystems/cookbook-bundle

eZ Platform Bundle,包含可使用的代码示例

安装: 92

依赖项: 0

建议者: 0

安全: 0

星标: 15

关注者: 25

分支: 22

开放问题: 9

类型:ezplatform-bundle

dev-master / 1.0.x-dev 2020-04-13 13:09 UTC

This package is auto-updated.

Last update: 2024-09-13 23:34:32 UTC


README

Cookbook bundle的目标是

  • 提供eZ Platform API使用的完整工作示例
  • 作为一个可重用的命令集合,在开发过程中需要时可以使用

本bundle的1.0版本旨在与eZ Publish Platform 5.4和eZ Platform 1.7 / 1.13 / 2.5兼容。

入门

所需

  • PHP (最低版本5.6,推荐使用7.0+)
  • Composer
  1. 使用Composer创建和安装eZ Platform

    composer create-project ezsystems/ezplatform:^2

    按照屏幕上的说明进行操作,以实现eZ Platform的完整工作安装。

  2. 使用Composer安装 CookbookBundle

    # execute in your eZ Platform project working directory:
    composer require ezsystems/cookbook-bundle:^1.0@dev

    按照屏幕上的说明进行操作,以实现 CookbookBundle 的完整工作安装。

  3. AppKernel.php 中启用该bundle

    public function registerBundles()
    {
        $bundles = array(
            // ...
            new EzSystems\CookbookBundle\EzSystemsCookbookBundle(),
        );
    
        // ...
    }
  4. 清除Symfony缓存

    php bin/console cache:clear
  5. 尝试已定义的命令。您可以通过以下方式找到所有可用的命令

    php bin/console |grep 'ezpublish:cookbook'

这就完了!